0.5.2 CKeditor

191 views
Skip to first unread message

Mark (Nosrednakram)

unread,
Jul 22, 2012, 4:28:09 PM7/22/12
to zk-ui...@googlegroups.com
I'm was hoping to be able to use the CKeditor.  I noticed it's defined in the zultaglib and thought I would see if it was available.  I get "Component definition not found: ckeditor" when I try to use a <z:ckeditor ..> tag.  There is a grails ckeditor plugin also but   i'm not sure to bind data with it correctly.

groovyquan

unread,
Aug 4, 2012, 4:31:18 AM8/4/12
to zk-ui...@googlegroups.com

zkui support zk component, for use use z:ckeditor tag ,you must add ckez-3.6.0.1.jar(http://mavensync.zkoss.org/maven2/org/zkoss/zkforge/ckez/3.6.0.1/) to your project lib.

or you can use jar dependencies

mavenRepo "http://mavensync.zkoss.org/maven2/"

runtime "org.zkoss.zkforge:ckez:3.6.0.1"

Mark (Nosrednakram)

unread,
Aug 13, 2012, 10:32:21 AM8/13/12
to zk-ui...@googlegroups.com
Thanks for the help, it worked great.  I appreciate your help.

Mark

john.jo...@gmail.com

unread,
Nov 13, 2012, 2:52:38 PM11/13/12
to zk-ui...@googlegroups.com
Can you give a code example of <z:ckeditor..? Or point me to a web page with examples?

In my code, I have:

<z:ckeditor id="blogText" value="${basicBlogInstance?.blogText}"/>

I also have the runtime dependency declaration in BuildConfig.groovy.

When the page renders, it just shows a textarea field not an editor.

Also, is it possible to apply a CSS to the editor's contents? A CSS that is different than the one Grails or ZKUI is using?

Globiboulga

unread,
Nov 22, 2012, 6:10:57 AM11/22/12
to zk-ui...@googlegroups.com, john.jo...@gmail.com
Hi,

Got the same issue as you it was because i used the grails plugin resources with this tag : <r:layoutResources /> in my gsp

You don't need to worry about css using, just use the same syntax you 've used but don't forget that if you want to retrieve data from the ckeditor when you submit your form, yoy'll need to add this line in your create and edit composer:

objetInstance.blogText = self.select("#blogText")[0].value

Reply all
Reply to author
Forward
0 new messages