0

ZK-CodeMirror released

asked 2010-10-20 11:53:32 +0800

mjablonski gravatar image mjablonski
1284 3 5
http://www.jease.org/

updated 2010-10-20 11:54:13 +0800

Hi,

today I've released the first public version of CodeMirror for ZK.

CodeMirror is a JavaScript library by Marijn Haverbeke that can be used to create a relatively pleasant editor interface for code-like content - computer programs, HTML markup, and similar.

Download and sources of the project are located at: http://code.google.com/p/zk-codemirror

Online-demo is located at: http://www.jease.org/codemirror

Please feel free to ping me if you have questions or suggestions.

Have fun,
Maik

delete flag offensive retag edit

15 Replies

Sort by ยป oldest newest

answered 2010-12-16 10:05:20 +0800

mjablonski gravatar image mjablonski
1284 3 5
http://www.jease.org/

Hi,

maybe an interesting update: I've added a parser for Mediawiki-Markup to zk-codemirror. And thanks to Matt who committed an improved configuration approach.

Download and sources of the project are located at: http://code.google.com/p/zk-codemirror

Online-demo is located at: http://www.jease.org/codemirror

Cheers, Maik

link publish delete flag offensive edit

answered 2010-11-11 06:22:48 +0800

mjablonski gravatar image mjablonski
1284 3 5
http://www.jease.org/

Hi,

I've just uploaded a new release for zk-codemirror which uses the recently released CodeMirror 0.91 (including some important fixes for WebKit-based-Browsers like Safari or Chrome).

zk-codemirror works very stable and I can recommend it for production... I'm already using it in the latest JeaseCMS as pleasant ScriptEditor. Works like a charm.

Have fun,
Maik

link publish delete flag offensive edit

answered 2010-11-01 09:08:37 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

I agree with Maik and Thomas.
If you have a maven managed project and must put some jars like zk calendar or other zk libs manual in your project than you have such libs all times in your CVS repository too. That's not the sense of maven. So, please find a solution that such additional components and user contributions can be mavenized.

best
Stephan

link publish delete flag offensive edit

answered 2010-11-01 07:02:22 +0800

oberinspector gravatar image oberinspector
219 2 2

hi,

providing zk-codemirror in the zk repositories would be a possble solution. When using ZK this repository is mandatory anyway at the moment, since the latest zk jars are not in maven-central. So there should be a way to deliver jars for upload them to the ZK-repos.

@Peter
at the moment i started with JavaForge as projekt home for my zk-filebrowser componentset. The tooling there seems very comfortable, but also very complex. I plan to write some wiki documents and a demo app within this week.

/thomas

link publish delete flag offensive edit

answered 2010-11-01 04:49:59 +0800

mjablonski gravatar image mjablonski
1284 3 5
http://www.jease.org/

Hi Tim,

in principle yes. I don't know if this is possible at all (due to policies etc.pp.), but as ZK seems not to be available via "official" maven-repos in the future, it would ease the dependency-management for maven-users when working with ZK-Core and ZK-3rd-party libraries. As I don't use maven I have no real stakes in this question.

Cheers, Maik

link publish delete flag offensive edit

answered 2010-10-31 21:02:31 +0800

tmillsclare gravatar image tmillsclare
799 2 5 30

Hey Maik,

Are you asking whether we can upload zk codemirror to our maven repository?

Cheers, Tim

link publish delete flag offensive edit

answered 2010-10-30 11:59:07 +0800

mjablonski gravatar image mjablonski
1284 3 5
http://www.jease.org/

Hi,

@Peter: the project is already hosted on google code...:-)

Maybe an idea: if ZK uses a dedicated maven repository, maybe the ZK-Team can provide some means to upload third-party-jars (like zk-codemirror) to this repository, so people using maven have just one repository to configure etc.pp.

Cheers, Maik

link publish delete flag offensive edit

answered 2010-10-28 21:47:34 +0800

PeterKuo gravatar image PeterKuo
481 2

@oberinspector
Nice to have your zk component to provide.
How about place it at google code?
Many ZK related project has hosted at google code, bandwidth does matter.

link publish delete flag offensive edit

answered 2010-10-27 13:28:15 +0800

oberinspector gravatar image oberinspector
219 2 2

Hi Maik,

hiking in the mountains sounds great... which mountains?

It would be of course possible to add all the WEB-INF stuff to the project and create a jar OR a war with maven. With this the maven project should behave as your original project, but this is not the intention of maven i think. Maven has some defaults where things have to be stored. So the WEB-INF related stuff has to be stored in src/main/webapp. One point of maven is to build, test, create different artifacts like jars, source-jars, javadoc, etc. and the other big deal is to keep all dependencies up to date. In the pom.xml all the dependencies your jar file needs are noted with the required version. The referenced jars are pulled from maven central repository together with their pom.xml and stored in your local maven repository. The only dependency zk-codemiror needs to compile is zk.jar in version 5.04, which is pulled in with:

<dependencies>
<dependency>
<groupId>org.zkoss.zk</groupId>
<artifactId>zk</artifactId>
<version>5.0.4</version>
</dependency>
zk.jar has again dependencies in his pom.xml which are pulled in automatically through maven. This is done until all hierarchical dependencies are solved.

So when i want to use zk-codemirror from maven-central i can simply rightclick on my project in eclipse and select "add Dependenciy" type "zk-code..." and the zk-codemirror.jar is offered for selection... thats all! I don't have to care which jars have to be in WEB-INF/lib since maven cares for me.

One problem is that the latest ZK libs are not stored in maven-central - even not the CE ones and it is strictly not recommended or allowed to provide jars in maven-central, which have dependencies not itself are stored in maven-central. So until this is solved it might not be possible to upload jars with zk-dependencies to maven-central. I mentioned this in another thread:
http://www.zkoss.org/forum/listComment/13391

since i have also some zk components to provide i will follow this. At the moment i'm looking for an opensource home for this components... probably it will be javaforge.com.

link publish delete flag offensive edit

answered 2010-10-27 09:18:54 +0800

mjablonski gravatar image mjablonski
1284 3 5
http://www.jease.org/

Hi Thomas,

sorry for the delay, but I've spent some days hiking in the mountains.

I've checked your SVN and it seems that Maven requires some rearrangement of the code base, doesn't it? I really like the possibility of having zero turnarounds when developing components. This is the reason why zk-codemirror was set up as web/demo-application which is ready to run right after checking out the sources.

Can we come up with a layout which allows this "core maintainer friendliness" with support for Maven? Could it be another possibility to use some sort of staging? Is it a Maven requirement to push the sources to the Maven repository at all? Wouldn't it be enough to publish just the Jar?

Sorry for the silly questions, but I'm not very familar with Maven and required policies.

Thanks,
Maik

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2010-10-20 11:53:32 +0800

Seen: 2,051 times

Last updated: Dec 16 '10

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More