-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi All,
I'm working for a client on a ZK-based app that includes an editor for small Groovy scripts. It currently uses a ZK multiline textbox. It works, but is about as easy to use as coding in Notepad (ack!). When I saw the editor that Guillaume Laforge included in the Groovy Web Console, I was blown away and wanted to add something similar to our app. It turns out that his editor (under the Apache Software License) is based on CodeMirror (under an even more liberal zlib-style license), a JavaScript editor library supporting multiple languages.
I've never created my own ZK component, but I'm guessing that would be the best way to integrate a CodeMirror-based editor with ZK. I'm starting by reading the Component Development Tutorial, but I'm guessing I'll have a lot of questions along the way. The exciting news is that I've received permission from my client to contribute the results back to the community. Would anyone be interested in helping me?
Thanks,
Matt
Hi,
I guess that's a limitation of CodeMirror 1... I'm planning to migrate zk-codemirror to CodeMirror 2, but I don't have any estamations when it will be done... hopefully this year.
Cheers, Maik
Hi Maik ,
Thanks for the wonderful ZK-Codemirror. I have used that in my code.
But I have an issue regarding CPU usage.
When I create lot of codemirror components in single .zul file, it increases the CPU usage. I tested it with IE data profiler and got to know that "editor.js" is called multiple times when such zul is run.
Can you please help...
Thanks,
Deepa.
Good work, Maik :-)
Pretty cool, Maik!
looks great!:D
Hi,
I've just released a first version of ZK-CodeMirror:
http://code.google.com/p/zk-codemirror/
Demo is here:
http://www.jease.org/codemirror/
Hope you like it!
Maik
Asked: 2010-04-08 11:07:29 +0800
Seen: 1,907 times
Last updated: Sep 03 '12