Changeset 6136


Ignore:
Timestamp:
01/25/10 01:14:07 (2 years ago)
Author:
SvenDowideit
Message:

Item8416: add TINYMCEPLUGIN_BUTTONS(123) to allow simple customisation of toolbar

Location:
trunk/TinyMCEPlugin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/TinyMCEPlugin/data/System/TinyMCEPlugin.txt

    r6129 r6136  
    8585paste_remove_styles: true, 
    8686paste_strip_class_attributes: "all", 
    87 theme_advanced_buttons1 : "foswikiformat,separator,bold,italic,tt,colour,removeformat,separator,bullist,numlist,outdent,indent,blockquote,separator,link,unlink,anchor,separator,undo,redo,separator,search,replace", 
    88 theme_advanced_buttons2: "tablecontrols,separator,attach,image,charmap,hr,separator,code,hide,fullscreen", 
    89 theme_advanced_buttons3: "", 
     87theme_advanced_buttons1 : "%IF{"defined TINYMCEPLUGIN_BUTTONS1" then="%TINYMCEPLUGIN_BUTTONS1%" else="foswikiformat,separator,bold,italic,tt,colour,removeformat,separator,bullist,numlist,outdent,indent,blockquote,separator,link,unlink,anchor,separator,undo,redo,separator,search,replace"}%", 
     88theme_advanced_buttons2 : "%IF{"defined TINYMCEPLUGIN_BUTTONS2" then="%TINYMCEPLUGIN_BUTTONS2%" else="tablecontrols,separator,attach,image,charmap,hr,separator,code,hide,fullscreen"}%", 
     89theme_advanced_buttons3 : "%IF{"defined TINYMCEPLUGIN_BUTTONS3" then="%TINYMCEPLUGIN_BUTTONS3%" else=""}%", 
    9090theme_advanced_toolbar_location: "top", 
    9191theme_advanced_resize_horizontal : false, 
     
    101101| =TINYMCEPLUGIN_INIT= | As [[%TOPIC%#Preferences][above]] | Holds the initialization parameters used to start !TinyMCE | 
    102102| =TINYMCEPLUGIN_ADDITIONAL_MCEPLUGINS= | '' | additional !TinyMCE plugins to initialise | 
     103| =TINYMCEPLUGIN_BUTTONS2= | As [[%TOPIC%#Preferences][above]] | configure the order and existance of icons in the toolbar | 
    103104| =TINYMCEPLUGIN_INIT_browser= | See [[%TOPIC%#Browser_Specific_Settings][Browser Specific Settings]] below | Add extra parameters to =TINYMCEPLUGIN_INIT= string for a specific =_browser= | 
    104105| =TINYMCEPLUGIN_DISABLE= | 0 | If set to 1, disables TinyMCEPlugin. _Please use_ =NOWYSIWYG= _instead_ | 
     
    122123Documentation for standard plugins shipped with !TinyMCE can be found at [[http://wiki.moxiecode.com/index.php/TinyMCE:Plugins]]. 
    123124 
    124 To enable these extra plugins, Set the =TINYMCEPLUGIN_ADDITIONAL_MCEPLUGINS= variable in your %USERSWEB%.SitePreferences. eg. 
     125To enable these extra plugins, Set the =TINYMCEPLUGIN_ADDITIONAL_MCEPLUGINS= variable in your %USERSWEB%.SitePreferences. 
     126If the plugin also adds a toolbar button, you will need to add it into the appropriate place in the =TINYMCEPLUGIN_BUTTONS*= variables.  
     127 
     128add the following to %USERSWEB%.SitePreferences 
    125129 
    126130<verbatim> 
    127    * Set TINYMCEPLUGIN_ADDITIONAL_MCEPLUGINS = emotions,sitespecificplugin 
     131---++ TinyMCE cunstomisations 
     132   * Set TINYMCEPLUGIN_ADDITIONAL_MCEPLUGINS = emotions 
     133   * Set TINYMCEPLUGIN_BUTTONS2 = emotions,tablecontrols,separator,attach,image,charmap,hr,separator,code,hide,fullscreen 
    128134</verbatim> 
    129135 
     
    173179|  Release: | %$RELEASE% | 
    174180|  Change History: | <!-- versions below in reverse order -->&nbsp; | 
    175 |  24 Jan 2010 | Foswikitask:Item8416: add TINYMCEPLUGIN_ADDITIONAL_MCEPLUGINS to allow wiki, web and topic specific plugins to be added [[Foswiki:Main.SvenDowideit][SD]] | 
     181|  24 Jan 2010 | Foswikitask:Item8416: add TINYMCEPLUGIN_ADDITIONAL_MCEPLUGINS and TINYMCEPLUGIN_BUTTONS(123) to allow wiki, web and topic specific plugins to be added [[Foswiki:Main.SvenDowideit][SD]] | 
    176182|  29 Dec 2009 | Foswikitask:Item2447: Fix unable to apply "Normal" format in some browsers (notes added to System topic)<br/> Foswikitask:Item1462: Block attachments to unsaved AUTOINC topics | 
    177183|  25 Nov 2009 | Foswikitask:Item2412: Inserting images - fixed a problem where it wasn't easy (impossible unless > 1 attachments) to select the first image in the attachment list; improved layout of dialog window where preview obscures insert/cancel buttons. | 
  • trunk/TinyMCEPlugin/lib/Foswiki/Plugins/TinyMCEPlugin.pm

    r6127 r6136  
    6767paste_remove_styles: true, 
    6868paste_strip_class_attributes: "all", 
    69 theme_advanced_buttons1 : "foswikiformat,separator,bold,italic,tt,colour,removeformat,separator,bullist,numlist,outdent,indent,blockquote,separator,link,unlink,anchor,separator,undo,redo,separator,search,replace", 
    70 theme_advanced_buttons2: "tablecontrols,separator,attach,image,charmap,hr,separator,code,hide,fullscreen", 
    71 theme_advanced_buttons3: "", 
     69theme_advanced_buttons1 : "%IF{"defined TINYMCEPLUGIN_BUTTONS1" then="%TINYMCEPLUGIN_BUTTONS1%" else="foswikiformat,separator,bold,italic,tt,colour,removeformat,separator,bullist,numlist,outdent,indent,blockquote,separator,link,unlink,anchor,separator,undo,redo,separator,search,replace"}%", 
     70theme_advanced_buttons2 : "%IF{"defined TINYMCEPLUGIN_BUTTONS2" then="%TINYMCEPLUGIN_BUTTONS2%" else="tablecontrols,separator,attach,image,charmap,hr,separator,code,hide,fullscreen"}%", 
     71theme_advanced_buttons3 : "%IF{"defined TINYMCEPLUGIN_BUTTONS3" then="%TINYMCEPLUGIN_BUTTONS3%" else=""}%", 
    7272theme_advanced_toolbar_location: "top", 
    7373theme_advanced_resize_horizontal : false, 
Note: See TracChangeset for help on using the changeset viewer.