I created a new custom toolbarset called CustomMenu. I basically cut the pasted the default toolbarset but when I choose the custom toolbarset, I get an error stating that it does not exist. I am using the PHP implementation
Any help with this will be greatly appreciated
Thanks
Any help with this will be greatly appreciated
Thanks
RE: Customizing toolbarset
RE: Customizing toolbarset
-------------------------------------------------
config.ToolbarSets = new Object() ;
config.ToolbarSets["Default"] = [
['EditSource','-','Cut','Copy','Paste','PasteText','PasteWord','-','Find','-','Undo','Redo','-','SelectAll','RemoveFormat','-','Link','RemoveLink','-','Table','Rule','SpecialChar'] ,
['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyFull','-','InsertOrderedList','InsertUnorderedList','-','Outdent','Indent','-','ShowTableBorders','ShowDetails'] ,
['FontStyle','-','FontFormat','-','Font','-','FontSize','-','TextColor','BGColor']
] ;
config.ToolbarSets["Source"] = [
['EditSource']
] ;
config.ToolbarSets["Accessibility"] = [
['EditSource','-','Cut','Copy','Paste','-','SelectAll','RemoveFormat','-','Link','RemoveLink','-','Image','Rule','-','About'] ,
['FontStyle','-','Bold','Italic','Underline','-','InsertOrderedList','InsertUnorderedList','-','Undo','Redo']
] ;
config.ToolbarSets["Basic"] = [
['Bold','Italic','-','InsertOrderedList','InsertUnorderedList','-','Link','RemoveLink','-','About']
] ;
config.ToolbarSets["CustomMenu"] = [
['EditSource','-','Cut','Copy','Paste','PasteText','PasteWord','-','Find','-','Undo','Redo','-','SelectAll','RemoveFormat','-','Link','RemoveLink','-','Table','Rule','SpecialChar'] ,
['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyFull','-','InsertOrderedList','InsertUnorderedList','-','Outdent','Indent','-','ShowTableBorders','ShowDetails'] ,
['FontStyle','-','FontFormat','-','Font','-','FontSize','-','TextColor','BGColor']
] ;
---------------------------------------------
Here is the section in my php file that implements the editor
***********************************
include_once("../common/FCKeditor/fckeditor.php");
$oFCKeditor = new FCKeditor;
$oFCKeditor->ToolbarSet = 'CustomMenu';
$oFCKeditor->CanUpload = false ; // Overrides fck_config.js default configuration
$oFCKeditor->CanBrowse = false ; // Overrides fck_config.js default configuration
$oFCKeditor->Value = $profile;
$oFCKeditor->CreateFCKeditor('profile', '100%', 200);
-------------------------------------
Thanks
RE: Customizing toolbarset
I'ved searched for a file using fckconfig.js, but can't find any calling it, so where is the link ?
Does this file really used in Beta 2 ?
It seems strange to me, I' don't understand.
RE: Customizing toolbarset
The reason I ask this is that even when I make modifications to the default toolbarset (eg removing smiley), it still shows up as if nothing was modified. Do I have to rename fck_config.js? Do have to create a separate config.js file for the customization stuff?
Thanks
Martin
RE: Customizing toolbarset
RE: Customizing toolbarset
RE: Customizing toolbarset
Fixed the path problem and now everything works great.
Thanks again
{Mozilla support anyone??}