%STARTSECTION{"TINYMCEPLUGIN_INIT"}% 
"mode" : "textareas", 
"editor_selector" : "foswikiWysiwygEdit", 
"save_on_tinymce_forms" : true, 
"cleanup" : true, 
"theme" : "advanced", 
"convert_urls" : true, 
"relative_urls" : false, 
"remove_script_host" : false, 
"dialog_type" : "modal", 
"extended_valid_elements" : "li[type]", 
"setupcontent_callback" : "FoswikiTiny.setUpContent", 
"urlconverter_callback" : "FoswikiTiny.convertLink", 
"foswikipuburl_callback" : "FoswikiTiny.convertPubURL", 
"save_callback" : "FoswikiTiny.saveCallback",%IF{ 
    "$TINYMCEPLUGIN_DEBUG" 
    then=" 
\"debug\" : true," 
}% 
"plugins" : "%IF{ 
    "defined 'TINYMCEPLUGIN_MCEPLUGINS'" 
    then="%TINYMCEPLUGIN_MCEPLUGINS%" 
    else="%STARTSECTION{"MCEPLUGINS"}%contextmenu, table, searchreplace, autosave, paste, legacyoutput, inlinepopups, fullscreen, foswiki, foswikibuttons, foswikiimage%ENDSECTION{"MCEPLUGINS"}%" 
}%%IF{ 
    "defined 'TINYMCEPLUGIN_ADDITIONAL_MCEPLUGINS'" 
    then=", %TINYMCEPLUGIN_ADDITIONAL_MCEPLUGINS%" 
}%", 
"foswiki_secret_id" : "%WYSIWYG_SECRET_ID%", 
"foswiki_vars" : { 
    "PUBURLPATH" : "%PUBURLPATH%", 
    "PUBURL" : "%PUBURL%", 
    "WEB" : "%BASEWEB%", 
    "TOPIC" : "%BASETOPIC%", 
    "ATTACHURL" : "%PUBURL%/%BASEWEB%/%BASETOPIC%", 
    "ATTACHURLPATH" : "%PUBURLPATH%/%BASEWEB%/%BASETOPIC%", 
    "VIEWSCRIPTURL" : "%SCRIPTURL{view}%", 
    "SCRIPTSUFFIX" : "%SCRIPTSUFFIX%", 
    "SCRIPTURL" : "%SCRIPTURL%", 
    "SYSTEMWEB" : "%SYSTEMWEB%" 
}, 
"theme_advanced_toolbar_align" : "left", 
"foswikibuttons_formats" : { 
    /* Use 'attributes : { class : "foo" }' instead of 'classes: "foo"' 
     * because this is how it's done in the default advanced theme shipped 
     * with TinyMCE which seems to be a few ms faster on cursor movement 
     */ 
    "Normal" : { "remove" : "all" }, 
    "Heading 1" : { "block" : "h1",  "remove" : "all" }, 
    "Heading 2" : { "block" : "h2",  "remove" : "all" }, 
    "Heading 3" : { "block" : "h3",  "remove" : "all" }, 
    "Heading 4" : { "block" : "h4",  "remove" : "all" }, 
    "Heading 5" : { "block" : "h5",  "remove" : "all" }, 
    "Heading 6" : { "block" : "h6",  "remove" : "all" }, 
    "VERBATIM"  : { "block" : "pre", "remove" : "all", "attributes" : { "class" : "TMLverbatim" } },  
    "LITERAL"   : { "block" : "div", "remove" : "all", "attributes" : { "class" : "WYSIWYG_LITERAL" } }, 
    "Protect on save" : { "block" : "div", "remove" : "all", "attributes" : { "class" : "WYSIWYG_PROTECTED" } }, 
    "Protect forever" : { "block" : "div", "remove" : "all", "attributes" : { "class" : "WYSIWYG_STICKY" } } 
}, 
"foswikibuttons_cursoridletime" : 250, 
"paste_create_paragraphs" : true, 
"paste_create_linebreaks" : false, 
"paste_convert_middot_lists" : true, 
"paste_convert_headers_to_strong" : false, 
"paste_remove_spans" : true, 
"paste_remove_styles" : true, 
"paste_strip_class_attributes" : "all", 
"theme_advanced_buttons1" : "%IF{ 
    "defined 'TINYMCEPLUGIN_BUTTONS1'" 
    then="%TINYMCEPLUGIN_BUTTONS1%" 
    else="%STARTSECTION{"BUTTONS1"}%foswikiformat, separator, bold, italic, tt, colour, removeformat, separator, bullist, numlist, outdent, indent, blockquote, separator, link, unlink, anchor, separator, undo, redo, separator, search, replace%ENDSECTION{"BUTTONS1"}%" 
}%%IF{ 
    "defined 'TINYMCEPLUGIN_ADDITIONAL_BUTTONS1'" 
    then=", %TINYMCEPLUGIN_ADDITIONAL_BUTTONS1%" 
}%", 
"theme_advanced_buttons2" : "%IF{ 
    "defined 'TINYMCEPLUGIN_BUTTONS2'" 
    then="%TINYMCEPLUGIN_BUTTONS2%" 
    else="%STARTSECTION{"BUTTONS2"}%tablecontrols, separator, attach, image, charmap, hr, separator, restoredraft, fullscreen, code, hide%ENDSECTION{"BUTTONS2"}%" 
}%%IF{ 
    "defined 'TINYMCEPLUGIN_ADDITIONAL_BUTTONS2'" 
    then=", %TINYMCEPLUGIN_ADDITIONAL_BUTTONS2%" 
}%", 
"theme_advanced_buttons3" : "%IF{ 
    "defined 'TINYMCEPLUGIN_BUTTONS3'" 
    then="%TINYMCEPLUGIN_BUTTONS3%" 
}%%IF{ 
    "defined 'TINYMCEPLUGIN_ADDITIONAL_BUTTONS3'" 
    then=", %TINYMCEPLUGIN_ADDITIONAL_BUTTONS3%" 
}%", 
"autosave_interval" : "%IF{ 
    "defined 'TINYMCEPLUGIN_AUTOSAVE_INTERVAL'" 
    then="%TINYMCEPLUGIN_AUTOSAVE_INTERVAL%" 
    else="%STARTSECTION{"AUTOSAVE_INTERVAL"}%180s%ENDSECTION{"AUTOSAVE_INTERVAL"}%" 
}%", 
"autosave_retention" : "%IF{ 
    "defined 'TINYMCEPLUGIN_AUTOSAVE_RETENTION'" 
    then="%TINYMCEPLUGIN_AUTOSAVE_RETENTION%" 
    else="%STARTSECTION{"AUTOSAVE_RETENTION"}%4320m%ENDSECTION{"AUTOSAVE_RETENTION"}%" 
}%", 
"entity_encoding" : "%IF{ 
    "defined 'TINYMCEPLUGIN_ENTITY_ENCODING'" 
    then="%TINYMCEPLUGIN_ENTITY_ENCODING%" 
    else="%STARTSECTION{"ENTITY_ENCODING"}%numeric%ENDSECTION{"ENTITY_ENCODING"}%" 
}%", 
"theme_advanced_toolbar_location" : "top", 
"theme_advanced_resize_horizontal" : false, 
"theme_advanced_resizing" : true, 
"theme_advanced_path" : false, 
"theme_advanced_statusbar_location" : "bottom", 
"keep_styles" : false, 
"content_css" : "%PUBURLPATH%/%SYSTEMWEB%/TinyMCEPlugin/wysiwyg%IF{ 
    "$TINYMCEPLUGIN_DEBUG" 
    then="_src" 
}%.css,%PUBURLPATH%/%SYSTEMWEB%/SkinTemplates/base.css,%FOSWIKI_STYLE_URL%,%FOSWIKI_COLORS_URL%" 
%ENDSECTION{"TINYMCEPLUGIN_INIT"}% 

-- ClifCox - 17 Nov 2011
Topic revision: r1 - 17 Nov 2011 - 06:15:18 - ClifCox
 

This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Eugene Maker Space Wiki? Send feedback