0

CKEditor and customConfigurationsPath issue [closed]

asked 2010-03-06 04:56:05 +0800

angelogeminiani gravatar image angelogeminiani
6 1 1
http://www.smartfeeling.o...

Hi,
I have a problem customizing CKEditor toolbar.
This is my custom configuration file:

CKEDITOR.editorConfig = function( config )
{
config.toolbar = 'MyToolbar';

config.toolbar_MyToolbar =
[
['NewPage','Preview'],
['Cut','Copy','Paste','PasteText','PasteFromWord','-','Scayt'],
['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
['Image','Flash','Table','HorizontalRule','Smiley','SpecialChar','PageBreak'],
'/',
['Styles','Format'],
['Bold','Italic','Strike'],
['NumberedList','BulletedList','-','Outdent','Indent','Blockquote'],
['Link','Unlink','Anchor'],
['Maximize','-','About']
];
};

and this is my zul code
<ckeditor customConfigurationsPath="http://192.168.0.100/BEEing/system/templates/default/js/ckconfig.js"></ckeditor>

CKEditor is created with its own full toolbar and not with mine.
Is it a bug of CKEditor zk component?

delete flag offensive retag edit

The question has been closed for the following reason "too subjective and argumentative" by sjoshi
close date 2013-02-16 11:37:09

5 Replies

Sort by ยป oldest newest

answered 2013-02-15 19:22:44 +0800

hswain gravatar image hswain flag of India
1763 3 10
http://corejavaexample.bl...
<ckeditor customConfigurationsPath="/resource/js/ckconfig.js" />
link publish delete flag offensive edit

answered 2010-03-08 22:53:51 +0800

samchuang gravatar image samchuang
4084 4

Hi

you have to put the configuration file under your web application "root" folder, for example if you put config file under root/js folder, and the path="/js/ckconfig.js"

link publish delete flag offensive edit

answered 2010-03-09 02:53:19 +0800

angelogeminiani gravatar image angelogeminiani
6 1 1
http://www.smartfeeling.o...

@samchuang
Thank you for answer.
My configuration file is under my application root: http://192.168.0.100/BEEing/
path "http://192.168.0.100/BEEing/system/templates/default/js/ckconfig.js" is full http path to retrieve ckconfig.js file.
The path works fine and if I write full url in my browser I can see file content.

Do you mean I need a relative path ("/js/ckconfig.js") instead of an absolute one?

link publish delete flag offensive edit

answered 2010-03-09 18:40:58 +0800

samchuang gravatar image samchuang
4084 4

Hi

do you mean your root folder is "BEEing", if so, maybe you could try "/system/templates/default/js/ckconfig.js"

if you still has problem, you could search CKeditor API document, because, ZK using replace function to do the config file setting

link publish delete flag offensive edit

answered 2011-10-29 22:24:33 +0800

sanhaq gravatar image sanhaq
264 1 6

it worked for me. I just put below line

<ckeditor customConfigurationsPath="/js/ckconfig.js"></ckeditor>

where js is the folder inside Webcontent.

link publish delete flag offensive edit

Question tools

Follow

RSS

Stats

Asked: 2010-03-06 04:56:05 +0800

Seen: 2,955 times

Last updated: Feb 15 '13

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