Hello, All -
I am sorry if this sounds like a simple problem but I'm sure I'm doing things wrong! I am trying to remove multiple buttons from the toolbar by using the config.removePlugins method. This works but often leads to error messages because one plugin requires another plugin to be loaded.
Clearly I must be doing something wrong.
So please, for the record, if I want to remove most of the buttons from the toolbar, what is the best method?
Thanks,
Perchpole
Toolbar is set in config.js
The correct method for creating a custom toolbar is to define one in config.js.
config.toolbar = 'Basic';
config.toolbar_Basic =
[
['Bold', 'Italic', '-', 'NumberedList', 'BulletedList', '-', 'Link', 'Unlink','-','About']
];
config.toolbar_Full =
[
{ name: 'snddocument', items : [ 'Source','-','Save','NewPage','DocProps','Preview','Print','-','Templates' ] },
{ name: 'clipboard', items : [ 'Undo','Redo' ] },
{ name: 'editing', items : [ 'Find','Replace','-','SelectAll','-','SpellChecker', 'Scayt' ] },
{ name: 'forms', items : [ 'Form', 'Checkbox', 'Radio', 'TextField', 'Textarea', 'Select', 'Button', 'ImageButton',
'HiddenField' ] },
'/',
{ name: 'basicstyles', items : [ 'Bold','Italic','Underline','Strike','Subscript','Superscript','-','RemoveFormat' ] },
{ name: 'paragraph', items : [ 'NumberedList','BulletedList','-','Outdent','Indent','-','Blockquote','CreateDiv',
'-','JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock','-','BidiLtr','BidiRtl' ] },
{ name: 'links', items : [ 'Link','Unlink','Anchor' ] },
{ name: 'insert', items : [ 'Image','Flash','Table','HorizontalRule','Smiley','SpecialChar','PageBreak','Iframe' ] },
'/',
{ name: 'styles', items : [ 'Styles','Format','FontSize' ] },
{ name: 'colors', items : [ 'TextColor','BGColor' ] },
{ name: 'tools', items : [ 'Maximize', 'ShowBlocks' ] }
];
config.toolbar= '[Name]'; determines which named toolbar definition is in use, thus you can have several. The toolbar references are to plugins, though not all exist as separate plugin folders, some are internal. If a toolbar items references a nonexistent plugin then the button will not show.
HTH.