This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
how_to:editor_configuration_toolbars [2011/06/02 07:04] Connie [Custom Toolbar] |
how_to:editor_configuration_toolbars [2016/09/17 19:22] Carlos missing comma in custom toolbar example |
||
---|---|---|---|
Line 64: | Line 64: | ||
| | ||
# WYSIWYG toolbars (advanced, basic or [custom config]) | # WYSIWYG toolbars (advanced, basic or [custom config]) | ||
- | define('GSEDITORTOOL',"[ | + | define('GSEDITORTOOL',"['Cut','Copy','Paste','PasteFromWord','-','Undo','Redo','Find','Replace','-','SelectAll'], |
- | ['Cut','Copy','Paste','PasteFromWord','-','Undo','Redo','Find','Replace','-','SelectAll'], | + | |
['Bold', 'Italic', 'Underline', 'NumberedList', 'BulletedList','JustifyLeft','JustifyCenter','JustifyRight', | ['Bold', 'Italic', 'Underline', 'NumberedList', 'BulletedList','JustifyLeft','JustifyCenter','JustifyRight', | ||
'JustifyBlock', 'Table', 'TextColor', 'BGColor', 'Link','Unlink', 'Image', 'RemoveFormat', 'Source'], | 'JustifyBlock', 'Table', 'TextColor', 'BGColor', 'Link','Unlink', 'Image', 'RemoveFormat', 'Source'], | ||
Line 71: | Line 70: | ||
['Styles','Format','Font','FontSize'] | ['Styles','Format','Font','FontSize'] | ||
"); | "); | ||
+ | |||
+ | Other example | ||
+ | |||
+ | # WYSIWYG toolbars (advanced, basic or [custom config]) | ||
+ | define('GSEDITORTOOL',"['Source','Save','Cut','Copy','Paste','PasteFromWord','-','Undo','Redo','Find','Replace', | ||
+ | '-','SelectAll','-','RemoveFormat','-','Outdent','Indent','-','Blockquote','CreateDiv'], | ||
+ | ['Bold', 'Italic', 'Underline','Strike','Subscript','Superscript', 'NumberedList', | ||
+ | 'BulletedList','JustifyLeft','JustifyCenter','JustifyRight', | ||
+ | 'JustifyBlock', 'Table', 'TextColor', 'BGColor', 'Link','Unlink', 'Image'],'/',['Styles','Format','Font', | ||
+ | 'FontSize','Flash','HorizontalRule','Smiley','SpecialChar','PageBreak', | ||
+ | 'Iframe','Maximize','ShowBlocks','-','About']"); | ||
+ | |||
This will add a new ribbon on top of the "advanced"- toolbar, adding buttons for "Copy/Paste" and "Search/Replace" to the advanced-Editor-Toolbar-Configuration.\\ Please note that not all of the above functions are supported by your browser eventually. Firefox does not support COPY and CUT, a messagebox opens when that buttons are used which suggests to use the standard-keyboard-short cuts instead. | This will add a new ribbon on top of the "advanced"- toolbar, adding buttons for "Copy/Paste" and "Search/Replace" to the advanced-Editor-Toolbar-Configuration.\\ Please note that not all of the above functions are supported by your browser eventually. Firefox does not support COPY and CUT, a messagebox opens when that buttons are used which suggests to use the standard-keyboard-short cuts instead. |