Hi
I want to add a new value to FCKConfig.ToolbarSets.
But I dont want to edit any file in the fckeditor directory, because I dont want it global and moreover & to avoid making changes all over when updating to a newer version of fckeditor.
This is what I want added to my HTML file.
But if I add it before var oFCKeditor = new FCKeditor('t1') ; , JS Error console says FCKConfig is not defined.
But if I add it after oFCKeditor.Create() ;, it says Basic1 is not a toolbar name and nothing happens, because Create() is called prior to this config changes.
So where do I make these config changes ?
Thanks
I want to add a new value to FCKConfig.ToolbarSets.
But I dont want to edit any file in the fckeditor directory, because I dont want it global and moreover & to avoid making changes all over when updating to a newer version of fckeditor.
var oFCKeditor = new FCKeditor('t1') ; oFCKeditor.BasePath = '../../fckeditor/'; oFCKeditor.ToolbarSet = "Basic2"; oFCKeditor.Value = ''; oFCKeditor.Height = 300; oFCKeditor.Create() ;
This is what I want added to my HTML file.
FCKConfig.ToolbarSets["Basic2"] = [ ['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'], ['OrderedList','UnorderedList','-','Outdent','Indent'], ['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'], ['Image', 'Link','Unlink'], ['TextColor','BGColor','-','Source'] ] ; FCKConfig.EnterMode = 'br' ; FCKConfig.ShiftEnterMode = 'p' ;
But if I add it before var oFCKeditor = new FCKeditor('t1') ; , JS Error console says FCKConfig is not defined.
But if I add it after oFCKeditor.Create() ;, it says Basic1 is not a toolbar name and nothing happens, because Create() is called prior to this config changes.
So where do I make these config changes ?
Thanks
Re: Modifying FCKConfig while running
But I cant seem to set oFCKeditor.Config["ToolbarSets"]["Basic2"]