Ok, I've tried numerous times to add a custom toolbar instead of using the default and basic configuration.
In fckconfig.js, I've added MyToolBar like this
FCKConfig.ToolbarSets["MyToolbar"] = [
['Cut','Copy','Paste','PasteText','PasteWord','-','Print','SpellCheck'],
['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'],
['OrderedList','UnorderedList','-','Outdent','Indent'],
['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
['Link','Unlink','Anchor'],
['Image','Flash','Table','Rule','Smiley','SpecialChar','UniversalKey'],
['Form','Checkbox','Radio','TextField','Textarea','Select','Button','ImageButton','HiddenField'],
'/',
['Style','FontFormat','FontName','FontSize']
] ;
And then I changed the following line in fckeditor.js
this.ToolbarSet = toolbarSet || 'MyToolbar' ;
When I open the page, it gives me an alert message saying that it cannot find the toolbar...
Is the toolbar restricted of being changed or have I missed something? Please help. I'm using the latest version btw.
In fckconfig.js, I've added MyToolBar like this
FCKConfig.ToolbarSets["MyToolbar"] = [
['Cut','Copy','Paste','PasteText','PasteWord','-','Print','SpellCheck'],
['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'],
['OrderedList','UnorderedList','-','Outdent','Indent'],
['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
['Link','Unlink','Anchor'],
['Image','Flash','Table','Rule','Smiley','SpecialChar','UniversalKey'],
['Form','Checkbox','Radio','TextField','Textarea','Select','Button','ImageButton','HiddenField'],
'/',
['Style','FontFormat','FontName','FontSize']
] ;
And then I changed the following line in fckeditor.js
this.ToolbarSet = toolbarSet || 'MyToolbar' ;
When I open the page, it gives me an alert message saying that it cannot find the toolbar...
Is the toolbar restricted of being changed or have I missed something? Please help. I'm using the latest version btw.
RE: MyToolBar Setup (Bug???)
this.ToolbarSet = 'MyToolbar' ;
?
Also, make sure your cache is cleared after each time, FCK loads js files in a way that can cause them not to reload sometimes.
Cheers
Ben
RE: MyToolBar Setup (Bug???)
Like so:
var oFCKeditor = new FCKeditor( 'FCKeditor_Mine' ) ;
oFCKeditor.BasePath = 'FCKeditor/' ;
oFCKeditor.ToolbarSet = 'MyToolbar' ; // Set toolbar here
oFCKeditor.Value = document.getElementById("contentId").value;
oFCKeditor.Create() ;