User Tools

Site Tools


how_to:editor_configuration_toolbars

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
how_to:editor_configuration_toolbars [2011/05/13 15:17]
Connie [Custom Toolbar with Copy/Paste / Paste from WORD and Search/Replace]
how_to:editor_configuration_toolbars [2015/01/25 17:38]
doberon@gmail.com fomat and add second example of custom toolbar
Line 52: Line 52:
 The syntax will be:  The syntax will be: 
   # WYSIWYG toolbars (advanced, basic or [custom config]) ​   # WYSIWYG toolbars (advanced, basic or [custom config]) ​
-  define('​GSEDITORTOOL',"​[+  define('​GSEDITORTOOL',"​[ ​ ]
   ​   ​
   ");   ");
Line 60: Line 60:
 I suggest to copy the advanced definition above and add additional items. I suggest to copy the advanced definition above and add additional items.
 ===== Custom Toolbar with Copy/Paste / Paste from WORD and Search/​Replace ===== ===== Custom Toolbar with Copy/Paste / Paste from WORD and Search/​Replace =====
- 
    
-  ​# WYSIWYG toolbars (advanced, basic or [custom config]) +An example for an even more advanced toolbar: 
-  define('​GSEDITORTOOL',"​ +   
-  ​['​Cut','​Copy','​Paste','​PasteFromWord','​-','​Undo','​Redo','​Find','​Replace','​-','​SelectAll'​],​ +  ​# WYSIWYG toolbars (advanced, basic or [custom config])  
-  ['​Bold',​ '​Italic',​ '​Underline',​ '​NumberedList',​ '​BulletedList', ​ '​JustifyLeft','​JustifyCenter','​JustifyRight','​JustifyBlock',​ '​Table',​ '​TextColor',​ '​BGColor',​ '​Link',​ '​Unlink',​ '​Image',​ '​RemoveFormat',​ '​Source'​],​+  define('​GSEDITORTOOL',"​['​Cut','​Copy','​Paste','​PasteFromWord','​-','​Undo','​Redo','​Find','​Replace','​-','​SelectAll'​],​ 
 +  ['​Bold',​ '​Italic',​ '​Underline',​ '​NumberedList',​ '​BulletedList','​JustifyLeft','​JustifyCenter','​JustifyRight',​ 
 +  ​'​JustifyBlock',​ '​Table',​ '​TextColor',​ '​BGColor',​ '​Link','​Unlink',​ '​Image',​ '​RemoveFormat',​ '​Source'​],​
   '/',​   '/',​
   ['​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.
how_to/editor_configuration_toolbars.txt · Last modified: 2016/09/17 19:22 by Carlos