Ignore:
Timestamp:
04/30/09 09:13:24 (3 years ago)
Author:
CrawfordCurrie
Message:

Item8108: refinements on the configuration

File:
1 edited

Legend:

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

    r3369 r3777  
    4141guidance on reconfiguring Tiny MCE, see the [[http://wiki.moxiecode.com/index.php/TinyMCE:Configuration][Moxicode TinyMCE Wiki]]. The default options are as follows. Note the inclusion of the Pattern Skin standard CSS files in the 
    4242=content_css= setting. 
    43 <verbatim>   * Set TINYMCEPLUGIN_INIT = mode:"textareas", 
    44    editor_selector : "foswikiWysiwygEdit", 
    45    save_on_tinymce_forms: true, 
    46    cleanup : true, 
    47    theme : "advanced", 
    48    convert_urls : true, 
    49    relative_urls : false, 
    50    remove_script_host : false, 
    51    dialog_type: "modal", 
    52    setupcontent_callback : FoswikiTiny.setUpContent, 
    53    urlconverter_callback : "FoswikiTiny.convertLink", 
    54    foswikipuburl_callback : "FoswikiTiny.convertPubURL", 
    55    save_callback : "FoswikiTiny.saveCallback", 
    56    %IF{"$TINYMCEPLUGIN_DEBUG" then="debug:true,"}% 
    57    plugins : "table,searchreplace,autosave,paste,foswikibuttons,foswikiimage%IF{ "context TinyMCEUsabilityUpgradePluginEnabled" then=",foswikilink" else=""}%", 
    58    foswiki_secret_id : "%WYSIWYG_SECRET_ID%", 
    59    foswiki_vars : { PUBURLPATH : "%PUBURLPATH%", PUBURL : "%PUBURL%", WEB : "%WEB%", TOPIC : "%TOPIC%", ATTACHURL : "%ATTACHURL%", ATTACHURLPATH : "%ATTACHURLPATH%", VIEWSCRIPTURL : "%SCRIPTURL{view}%", SCRIPTSUFFIX: "%SCRIPTSUFFIX%", SCRIPTURL : "%SCRIPTURL%", SYSTEMWEB: "%SYSTEMWEB%" }, 
    60    theme_advanced_toolbar_align : "left", 
    61    foswikibuttons_formats : [ 
    62    { name: "Normal", el: "", style: null }, 
    63    { name: "Heading 1", el: "h1", style: false }, 
    64    { name: "Heading 2", el: "h2", style: false }, 
    65    { name: "Heading 3", el: "h3", style: false }, 
    66    { name: "Heading 4", el: "h4", style: false }, 
    67    { name: "Heading 5", el: "h5", style: false }, 
    68    { name: "Heading 6", el: "h6", style: false }, 
    69    { name: "VERBATIM", el: "pre", style: "TMLverbatim" }, 
    70    { name: "LITERAL", el: "span", style: "WYSIWYG_LITERAL" }, 
    71    { name: "Protect on save", el: null, style: "WYSIWYG_PROTECTED" }, 
    72    { name: "Protect forever", el: null, style: "WYSIWYG_STICKY" } 
    73    ], 
    74    paste_create_paragraphs : true, 
    75    paste_create_linebreaks : false, 
    76    paste_convert_middot_lists : true, 
    77    paste_convert_headers_to_strong : false, 
    78    paste_remove_spans: true, 
    79    paste_remove_styles: true, 
    80    paste_strip_class_attributes: "all", 
    81    theme_advanced_buttons1 : "foswikiformat,separator,bold,italic,tt,colour,removeformat,separator,bullist,numlist,outdent,indent,separator,link,unlink,anchor,separator,attach,image,charmap,hr,separator,undo,redo,separator,search,replace", 
    82    theme_advanced_buttons2: "tablecontrols,separator,code,hide", 
    83    theme_advanced_buttons3: "", 
    84    theme_advanced_toolbar_location: "top", 
    85    theme_advanced_resize_horizontal : false, 
    86    theme_advanced_resizing : true, 
    87    theme_advanced_path: false, 
    88    theme_advanced_statusbar_location : "bottom", 
    89    keep_styles : false, 
    90    gecko_spellcheck : true, 
    91    content_css : "%PUBURLPATH%/%SYSTEMWEB%/TinyMCEPlugin/wysiwyg%IF{"$TINYMCEPLUGIN_DEBUG" then="_src"}%.css,%PUBURLPATH%/%SYSTEMWEB%/SkinTemplates/base.css,%FOSWIKI_STYLE_URL%,%FOSWIKI_COLORS_URL%" 
     43<verbatim> 
     44mode:"textareas", 
     45editor_selector : "foswikiWysiwygEdit", 
     46save_on_tinymce_forms: true, 
     47cleanup : true, 
     48theme : "advanced", 
     49convert_urls : true, 
     50relative_urls : false, 
     51remove_script_host : false, 
     52dialog_type: "modal", 
     53setupcontent_callback : FoswikiTiny.setUpContent, 
     54urlconverter_callback : "FoswikiTiny.convertLink", 
     55foswikipuburl_callback : "FoswikiTiny.convertPubURL", 
     56save_callback : "FoswikiTiny.saveCallback", 
     57%IF{"$TINYMCEPLUGIN_DEBUG" then="debug:true,"}% 
     58plugins : "table,searchreplace,autosave,paste,safari,inlinepopups,fullscreen,foswikibuttons,foswikiimage%IF{ "context TinyMCEUsabilityUpgradePluginEnabled" then=",foswikilink" else=""}%", 
     59foswiki_secret_id : "%WYSIWYG_SECRET_ID%", 
     60foswiki_vars : { PUBURLPATH : "%PUBURLPATH%", PUBURL : "%PUBURL%", WEB : "%WEB%", TOPIC : "%TOPIC%", ATTACHURL : "%ATTACHURL%", ATTACHURLPATH : "%ATTACHURLPATH%", VIEWSCRIPTURL : "%SCRIPTURL{view}%", SCRIPTSUFFIX: "%SCRIPTSUFFIX%", SCRIPTURL : "%SCRIPTURL%", SYSTEMWEB: "%SYSTEMWEB%" }, 
     61theme_advanced_toolbar_align : "left", 
     62foswikibuttons_formats : [ 
     63{ name: "Normal", el: "", style: null }, 
     64{ name: "Heading 1", el: "h1", style: false }, 
     65{ name: "Heading 2", el: "h2", style: false }, 
     66{ name: "Heading 3", el: "h3", style: false }, 
     67{ name: "Heading 4", el: "h4", style: false }, 
     68{ name: "Heading 5", el: "h5", style: false }, 
     69{ name: "Heading 6", el: "h6", style: false }, 
     70{ name: "VERBATIM", el: "pre", style: "TMLverbatim" }, 
     71{ name: "LITERAL", el: "span", style: "WYSIWYG_LITERAL" }, 
     72{ name: "Protect on save", el: null, style: "WYSIWYG_PROTECTED" }, 
     73{ name: "Protect forever", el: null, style: "WYSIWYG_STICKY" } 
     74], 
     75paste_create_paragraphs : true, 
     76paste_create_linebreaks : false, 
     77paste_convert_middot_lists : true, 
     78paste_convert_headers_to_strong : false, 
     79paste_remove_spans: true, 
     80paste_remove_styles: true, 
     81paste_strip_class_attributes: "all", 
     82theme_advanced_buttons1 : "foswikiformat,separator,bold,italic,tt,colour,removeformat,separator,bullist,numlist,outdent,indent,separator,link,unlink,anchor,separator,attach,image,charmap,hr,separator,undo,redo,separator,search,replace", 
     83theme_advanced_buttons2: "tablecontrols,separator,code,hide,fullscreen", 
     84theme_advanced_buttons3: "", 
     85theme_advanced_toolbar_location: "top", 
     86theme_advanced_resize_horizontal : false, 
     87theme_advanced_resizing : true, 
     88theme_advanced_path: false, 
     89theme_advanced_statusbar_location : "bottom", 
     90keep_styles : false, 
     91content_css : "%PUBURLPATH%/%SYSTEMWEB%/TinyMCEPlugin/wysiwyg%IF{"$TINYMCEPLUGIN_DEBUG" then="_src"}%.css,%PUBURLPATH%/%SYSTEMWEB%/SkinTemplates/base.css,%FOSWIKI_STYLE_URL%,%FOSWIKI_COLORS_URL%" 
    9292</verbatim> 
    9393You can set additional options for specific browsers. You can define extra options for MSIE, OPERA, GECKO and SAFARI. For example, 
    9494<verbatim>   * Set TINYMCEPLUGIN_INIT_MSIE = paste_auto_cleanup_on_paste : true 
     95</verbatim> 
     96The defaults are: 
     97<verbatim> 
     98    MSIE => 'paste_auto_cleanup_on_paste : true', 
     99    OPERA => '', 
     100    GECKO => 'gecko_spellcheck : true', 
     101    SAFARI => '', 
    95102</verbatim> 
    96103   * Warning: if you enable =paste_auto_cleanup_on_paste then it automatically implies =paste_use_dialog= on all non-MSIE browsers. 
     
    123130|  Plugin Version: | %$VERSION% | 
    124131|  Change History: | <!-- versions below in reverse order -->&nbsp; | 
     132|  10 Apr 2009 | Foswikitask:Item1394: fixed colour handling Foswikitask:Item8108: added safari,inlinepopups,fullscreen plugins, fixed some minor bugs on IE | 
    125133|  3 Apr 2009 | Foswikitask:Item1383: Optimised the preferences Foswikitask:Item8094: fixed the pickaxe | 
    126134|  15 Mar 2009 | Foswikitask:Item930: Crawford Currie upgraded to Tiny MCE 3.2.2 and recoded all the standard plugins that had to be recoded | 
Note: See TracChangeset for help on using the changeset viewer.