-
FEATURED COMPONENTS
First time here? Check out the FAQ!
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?
<ckeditor customConfigurationsPath="/resource/js/ckconfig.js" />
@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?
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
Asked: 2010-03-06 04:56:05 +0800
Seen: 2,955 times
Last updated: Feb 15 '13