I am trying to create a custom toolbar but any changes I make in config.js are not reflected when I refresh my browser. Here's what I have:
Whatever I change nothing changes. I can change the names around of the two toolbars, I can totally delete either one or the other toolbar - nothing. Also the skin does not change to Office 2003. It's almost as if the config.js file is completely ignored.
CKEDITOR.editorConfig = function( config ) { config.skins = 'office2003'; config.toolbar = 'toolbarLight'; config.toolbar_toolbarLight = [ ['Cut','Copy','Paste','PasteText','PasteFromWord','-','Scayt'], ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'], ['Image','Flash','Table','HorizontalRule','Smiley','SpecialChar', 'Link','Unlink','Anchor', 'Maximize'] , '/', ['Styles','Format','Font','FontSize', 'Bold','Italic','Strike','NumberedList','BulletedList','Outdent','Indent','Blockquote', 'TextColor','BGColor'], ]; config.toolbar_Fullx = [ ['Cut','Copy','Paste','PasteText','PasteFromWord','-','Print', 'SpellChecker', 'Scayt'], ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'], ['Form', 'Checkbox', 'Radio', 'TextField', 'Textarea', 'Select', 'Button', 'ImageButton', 'HiddenField'], '/', ['Bold','Italic','Underline','Strike','-','Subscript','Superscript'], ['NumberedList','BulletedList','-','Outdent','Indent','Blockquote'], ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'], ['Link','Unlink','Anchor'], ['Image','Flash','Table','HorizontalRule','Smiley','SpecialChar'], '/', ['Styles','Format','Font','FontSize'], ['TextColor','BGColor'], ['Maximize', 'ShowBlocks'] ]; };
Whatever I change nothing changes. I can change the names around of the two toolbars, I can totally delete either one or the other toolbar - nothing. Also the skin does not change to Office 2003. It's almost as if the config.js file is completely ignored.
Re: config.js changes not reflected
Didn't waste too much time trying to work it out, but when I went back to the page some hours later, I noticed that suddenly the editor has taken the changes in the config file. I use Firefox, and I think it must be Firefox caching the config file (or similar). Haven't done any checking into this as need to concentrate on other things, but it may be that clearing your cache will sort it out (or try it in another browser).
Re: config.js changes not reflected
Is this correct?
config.skins = 'office2003';
I can't seem to change the skin in the config.js file!
Re: config.js changes not reflected
Re: config.js changes not reflected
say you call this file as - ckeditor_config.js
and use this as your custom configuration file.
CKEDITOR.config.customConfig = '/your/path/ckeditor_config.js';
CKEDITOR.replace(textareaID);
HTH,
- Manish
Re: config.js changes not reflected
Re: config.js changes not reflected
Re: config.js changes not reflected
I understand that bit.
So I need to put that code in all my html files (I have several) that uses the editor?
Re: config.js changes not reflected
And it doesn't affect the 'Story' textarea one iota.
Re: config.js changes not reflected
And as for your last post, that's because you can't use the src attribute AND have content in your tag! There are two ways you can do it:
Re: config.js changes not reflected
OK, thanks - I am a JS numpty.
Re: config.js changes not reflected
I have several textarea on the page, and the editor appears in all of them, but in the first editor i get the full editor, the rest get the custom editor. I want the custom one in all of them. Any thoughts?
Do your testing in incognito
Do your testing in incognito window in case of chrome or private window in case of firefox! this will never cache your data!! and its reliable and works fine for frontend development and it takes effect immediately!