Hi, i have the following problem:
I tried to add a new toolbar into my own configuration file and set it when i created the editor. But I alwayg get the error that the toolbar does not exist. I use php.
Here is my php-code:
And here is a part of my editor_conf.js file:
I tried a lot, but nothing changed. I also tried several browsers and cleared the cache. Has anybody an idea what is wrong with my code?
Greetings Felix
I tried to add a new toolbar into my own configuration file and set it when i created the editor. But I alwayg get the error that the toolbar does not exist. I use php.
Here is my php-code:
$oFCKeditor = new FCKeditor('ctrlEdit'); $oFCKeditor->CustomConfigurationsPath = "../editor_conf.js"; $oFCKeditor->ToolbarSet = "Std";
And here is a part of my editor_conf.js file:
FCKConfig.ToolbarLocation = 'In' ; FCKConfig.ToolbarSets["Std"] = [ ['Source'], ['Cut','Copy','Paste','PasteText','PasteWord','-','Print','SpellCheck'], ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'], '/', ['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'], ['OrderedList','UnorderedList','-','Outdent','Indent','Blockquote'], ['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'], ['Link','Unlink','Anchor'], ['Image','Flash','Table','Rule','Smiley','SpecialChar','PageBreak'], '/', ['Style','FontFormat','FontName','FontSize'], ['TextColor','BGColor'] ] ; FCKConfig.ToolbarSets["Default"] = [
I tried a lot, but nothing changed. I also tried several browsers and cleared the cache. Has anybody an idea what is wrong with my code?
Greetings Felix
Re: Changes in configuration do not appear
This sounds strange:
Take a look at the source code of your page. I doubt that there is a reference to editor_conf.js.
This should work:
(take a look at source code and search for "editor_conf")
If toolbar is still not loaded, use some tool to trace HTTP headers. Perhaps the path to editor_conf.js is incorrect.
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+