Hello,
I have seen the possibility to add another toolbar in fckconfig.js like
FCKConfig.ToolbarSets["Basic"] = [
['Bold','Italic','-','OrderedList','UnorderedList','-','Link','Unlink','-','About']
] ;
Or loading the toolbar as a external js config file. I want to distinguish strongly between core code and configuration. So how do I set up a new toolbar without adding another js config file?
I know the following configuration does NOT work, but is there a clean and easy possiblity doing this:
var editor = new FCKeditor('htmlarea0', newWidth, newHeight ) ;
editor.BasePath = sBasePath ;
// wrong but nice ?!
editor.Config.ToolbarSets["cms"] = [
['PasteText','PasteWord', '-', 'Bold','Italic', 'Underline','-','OrderedList','UnorderedList','-','Link','Unlink','-','SelectAll','RemoveFormat','-','About']
] ;
editor.ToolbarSet = "cms";
editor.Config["DefaultLanguage"] = "de";
editor.Config["AutoDetectLanguage"] = false;
editor.Config["StartupFocus"] = false;
editor.ReplaceTextarea();
I have seen the possibility to add another toolbar in fckconfig.js like
FCKConfig.ToolbarSets["Basic"] = [
['Bold','Italic','-','OrderedList','UnorderedList','-','Link','Unlink','-','About']
] ;
Or loading the toolbar as a external js config file. I want to distinguish strongly between core code and configuration. So how do I set up a new toolbar without adding another js config file?
I know the following configuration does NOT work, but is there a clean and easy possiblity doing this:
var editor = new FCKeditor('htmlarea0', newWidth, newHeight ) ;
editor.BasePath = sBasePath ;
// wrong but nice ?!
editor.Config.ToolbarSets["cms"] = [
['PasteText','PasteWord', '-', 'Bold','Italic', 'Underline','-','OrderedList','UnorderedList','-','Link','Unlink','-','SelectAll','RemoveFormat','-','About']
] ;
editor.ToolbarSet = "cms";
editor.Config["DefaultLanguage"] = "de";
editor.Config["AutoDetectLanguage"] = false;
editor.Config["StartupFocus"] = false;
editor.ReplaceTextarea();