Is it possible to define a toolbar outside of a configuration file when creating an editor instance? I tried this but it did not work? Am I doing something wrong?
I need this because the toolbar buttons are dynamically generated for each editor call depending on some preconditions.
var editor = new FCKeditor("myeditor");
editor.Width = "100%";
editor.Height = "300px";
editor.ToolbarSets["MyBar"] = [ ['Undo','Redo','-','SelectAll','-','Cut','Copy','Paste','PasteText','PasteWord','-','Bold','Italic','Underline','-','Subscript','Superscript'] ];
editor.ToolbarSet = "MyBar";
...
Thank you for your help!
I need this because the toolbar buttons are dynamically generated for each editor call depending on some preconditions.
var editor = new FCKeditor("myeditor");
editor.Width = "100%";
editor.Height = "300px";
editor.ToolbarSets["MyBar"] = [ ['Undo','Redo','-','SelectAll','-','Cut','Copy','Paste','PasteText','PasteWord','-','Bold','Italic','Underline','-','Subscript','Superscript'] ];
editor.ToolbarSet = "MyBar";
...
Thank you for your help!