0

CKEditor skin problem

asked 2014-03-13 19:12:37 +0800

rgravel gravatar image rgravel
28 5

Hi,

I was using ckez.jar v3.6.4.0 and it was bundled with three skins (kama, office2003 and v2). Kama was the default one, I think. Now, I downloaded ckez v4.1.1.0 and there's only one skin (moono). I know I can download skins from CKeditor official web site but how should I registered them with ZK?

Thanks

Robert

delete flag offensive retag edit

3 Answers

Sort by » oldest newest most voted
0

answered 2014-03-14 12:09:49 +0800

rgravel gravatar image rgravel
28 5

Hi, thanks for the reply.

OK here's what I did:

  • Extracted ckez.jar to a folder
  • Put the kama skin in "web\js\ckez\ext\CKeditor\skins"
  • Rebuilt the ckez.jar file
  • Replace ckez.jar in my project with this new one
  • Set the skin as suggested above by noahhuang

When I run the project, the skins is there and seems to be ok, but I receive a ZK popup error message in my broswer saying: "/js/ckez/CKeditor/skins/kama/skin.js not found".

I verified if this file was there and, yes, it is.

I also tried the path that noahhuang suggested above: "ckeditor\ckez\src\archive\web\js\ckez\ext\CKeditor\skins" but this does'nt work at all.

Any idea of how I get rid of this error message?

link publish delete flag offensive edit

Comments

In Eclipse console, I have this: "org.zkoss.zk.ui.impl.DesktopImpl service:732 GRAVE: [Desktop z_niy:/index.zul] client error: /js/ckez/ext/CKeditor/skins/kama/skin.js not found"

rgravel ( 2014-03-14 12:16:20 +0800 )edit

can i download your jar?

noahhuang ( 2014-03-17 00:59:37 +0800 )edit

try to add zkez/src/archive into build path

noahhuang ( 2014-03-17 01:04:47 +0800 )edit

It doesn't work. Ok I tough it would be simple be apparently not. I'll keep the original plain black skin. :(

rgravel ( 2014-03-17 15:48:29 +0800 )edit

Finally, I did redo all the steps above and it's working. Thanks

rgravel ( 2014-10-28 17:32:02 +0800 )edit
1

answered 2014-03-14 03:47:29 +0800

vincentjian gravatar image vincentjian
2245 6

Hi, you can use another skin by providing a customconfig.js file. And then use the config file as follows:

<ckeditor customConfigurationsPath="/resource/js/customconfig.js" />
link publish delete flag offensive edit

Comments

Thanks, I know this part. I was missing the setConfig part.

rgravel ( 2014-03-14 12:11:52 +0800 )edit
1

answered 2014-03-14 03:55:16 +0800

noahhuang gravatar image noahhuang
74 4

updated 2014-03-17 01:05:37 +0800

  1. unzip the skin.zip to ckez\src\archive\web\js\ckez\ext\CKeditor\skins
  2. rebuild ckez and replace ckez.jar with new one
  3. then set skin in ZK

    Map config = new HashMap();

    config.put("skin", "YOUR_SKIN");

    ckeditor.setConfig(config);

link publish delete flag offensive edit

Comments

Thanks but it doesn't seems to work. See my other post below.

rgravel ( 2014-03-14 12:12:19 +0800 )edit
Your answer
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
1 follower

RSS

Stats

Asked: 2014-03-13 19:12:37 +0800

Seen: 33 times

Last updated: Mar 17 '14

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