Changeset 5389 for trunk/TinyMCEPlugin
- Timestamp:
- 10/29/09 07:00:06 (3 years ago)
- Location:
- trunk/TinyMCEPlugin
- Files:
-
- 1 deleted
- 11 edited
- 1 copied
-
. (modified) (1 prop)
-
data/System (modified) (1 prop)
-
data/System/TinyMCEPlugin.txt (modified) (5 diffs, 1 prop)
-
lib/Foswiki/Plugins/TinyMCEPlugin.pm (modified) (2 diffs)
-
lib/Foswiki/Plugins/TinyMCEPlugin/MANIFEST (modified) (1 diff)
-
pub/System/TinyMCEPlugin/foswiki.js (modified) (1 prop)
-
pub/System/TinyMCEPlugin/foswiki_src.js (modified) (1 prop)
-
pub/System/TinyMCEPlugin/foswiki_tiny.js (modified) (1 prop)
-
pub/System/TinyMCEPlugin/foswiki_tiny_src.js (modified) (1 prop)
-
pub/System/TinyMCEPlugin/screenshot.gif (deleted)
-
pub/System/TinyMCEPlugin/screenshot.png (copied) (copied from branches/Release01x00/TinyMCEPlugin/pub/System/TinyMCEPlugin/screenshot.png)
-
pub/System/TinyMCEPlugin/tinymce/jscripts/tiny_mce/plugins/foswikibuttons (modified) (1 prop)
-
pub/System/TinyMCEPlugin/tinymce/jscripts/tiny_mce/plugins/foswikiimage (modified) (1 prop)
Legend:
- Unmodified
- Added
- Removed
-
trunk/TinyMCEPlugin
- Property svn:mergeinfo changed
/branches/Release01x00/TinyMCEPlugin merged: 5385,5387-5388
- Property svn:mergeinfo changed
-
trunk/TinyMCEPlugin/data/System
- Property svn:mergeinfo changed
/branches/Release01x00/TinyMCEPlugin/data/System merged: 5385,5387-5388
- Property svn:mergeinfo changed
-
trunk/TinyMCEPlugin/data/System/TinyMCEPlugin.txt
- Property svn:mergeinfo changed
/branches/Release01x00/TinyMCEPlugin/data/System/TinyMCEPlugin.txt merged: 5385,5387-5388
r5352 r5389 7 7 %SHORTDESCRIPTION% 8 8 9 <img src="%ATTACHURL %/screenshot.gif"/>9 <img src="%ATTACHURLPATH%/screenshot.png"/> 10 10 11 11 %TOC% 12 This is an integration of the <a href="http://tinymce.moxiecode.com?id=powered_by_tinymce_mini"><img src="http://tinymce.sourceforge.net/buttons/tinymce_button.png" border="0" width="80" height="15" alt="TinyMCE" /></a> WYSIWYG editor. This is great little editor, fast and highly functional, and supporting a wide range of browsers, including Firefox, IE and Safari. At the time of writing it doesn't work with Konqueror.12 This is an integration of the fast and highly functional <a href="http://tinymce.moxiecode.com?id=powered_by_tinymce_mini"><img src="http://tinymce.sourceforge.net/buttons/tinymce_button.png" border="0" width="80" height="15" alt="TinyMCE" /></a> WYSIWYG editor. It supports a wide range of browsers, including Firefox, IE, Safari, Opera and Google Chrome (see [[http://wiki.moxiecode.com/index.php/TinyMCE:Compatibility][compatibility chart]]). At the time of writing it doesn't work with Konqueror. 13 13 14 14 The integration uses the Foswiki:Extensions.WysiwygPlugin to translate text to and from a format that !TinyMCE can edit. 15 15 16 Unlike the other editor integrations in Foswiki, which install "Word in a Browser" style editors, this plugin is able to swap out the _standard_ text areas in an editand replace them with WYSIWYG editors. This means you get WYSIWYG editors for textareas in forms, as well as for the main text of the topic. It can also co-exist alongside other WYSIWYG editors, such as Kupu.16 This plugin is able to swap out _standard_ text areas and replace them with WYSIWYG editors. This means you get WYSIWYG editors for textareas in forms, as well as for the main text of the topic. It can also co-exist alongside other WYSIWYG editors, such as Kupu. 17 17 18 18 The editor automatically "switches itself off" (i.e. reverts to the old text-only window) when editing topics that contain Foswiki content it can't handle, such as complex macros. 19 19 20 20 ---++ Editor Notes 21 The editor uses a translator module to convert from Foswiki Topic Markup Language (TML) to HTML and back. The translator converts special macros - such as %<nop>MACROS% - to plain text, and encloses them within HTML spans using a special style called =WYSIWYG_PROTECTED=. In this way the editor can detect text that is not meant to be HTML formatted. This style is _also_ used to protect special text you enter into the editor from being interpreted when the topic is translated back into TML. If you want to add any special features that are sensitive to formatting, such as =Set= statements, then you have toformat those regions using 'Protect on save' or 'Protect forever'.21 The editor uses a translator module to convert from Foswiki Topic Markup Language (TML) to HTML and back. The translator converts special macros - such as %<nop>MACROS% - to plain text, and encloses them within HTML spans using a special style called =WYSIWYG_PROTECTED=. In this way the editor can detect text that is not meant to be HTML formatted. This style is _also_ used to protect special text you enter into the editor from being interpreted when the topic is translated back into TML. If you want to add any special features that are sensitive to formatting, such as =Set= statements, then you should format those regions using 'Protect on save' or 'Protect forever'. 22 22 23 23 ---++ Installation Instructions … … 26 26 * This plugin comes pre-installed on Foswiki. You should only need to re-install if there is an upgrade to the plugin. 27 27 * It requires the very latest revision of WysiwygPlugin. 28 * When installed, it *replaces* the old "textarea" editor. The default Foswiki skin provides access to the plain text editor by adding a Raw Edit linkat the bottom of the page.28 * When installed, it *replaces* the old "textarea" editor. You may still access the plaintext editor with the "Wiki Text" button provided in the toolbar, however this does not necessarily give you the original raw topic content. To bypass the TML to HTML conversion process entirely, use the Raw Edit link provided by the default Foswiki skin at the bottom of the page. 29 29 30 30 First follow the installation instructions to install the Plugin: … … 37 37 38 38 ---++ Preferences 39 If you want to change any of the preferences you are recommended to copy the examples below and paste them into your own [[%SYSTEMWEB%.PreferenceSettings][preference settings]]. The settings in this topic are just examples and have no effect. 40 41 The [[%SYSTEMWEB%.PreferenceSettings][preference setting]] =TINYMCEPLUGIN_INIT= lets you redefine all the options passed to the Tiny MCE editor on startup. For a full explanation of the available options, and 42 guidance 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 43 =content_css= setting. 39 No preferences are stored in this topic. The example settings here have no effect. To learn more about setting preference variables, see the %SYSTEMWEB%.PreferenceSettings topic. 40 41 ---+++ =TINYMCEPLUGIN_INIT= 42 This variable holds all the options passed to the !TinyMCE editor on startup. For a full explanation of available !TinyMCE options, and guidance on reconfiguring !TinyMCE, see the [[http://wiki.moxiecode.com/index.php/TinyMCE:Configuration][Moxicode TinyMCE Wiki]]. 43 44 The default options are as follows (you will need to remove the newlines for your own =TINYMCEPLUGIN_INIT= string). Note the inclusion of the Pattern Skin standard CSS files in the =content_css= setting. 45 44 46 <verbatim> 45 47 mode:"textareas", … … 94 96 content_css : "%PUBURLPATH%/%SYSTEMWEB%/TinyMCEPlugin/wysiwyg%IF{"$TINYMCEPLUGIN_DEBUG" then="_src"}%.css,%PUBURLPATH%/%SYSTEMWEB%/SkinTemplates/base.css,%FOSWIKI_STYLE_URL%,%FOSWIKI_COLORS_URL%" 95 97 </verbatim> 96 You can set additional options for specific browsers. You can define extra options for MSIE, OPERA, GECKO and SAFARI. For example, 97 <verbatim> * Set TINYMCEPLUGIN_INIT_MSIE = paste_auto_cleanup_on_paste : true 98 99 ---+++ Other Settings 100 | *Variable* | *Default* | *Description* | 101 | =TINYMCEPLUGIN_INIT= | As [[%TOPIC%#Preferences][above]] | This variable holds the initialization parameters used to start !TinyMCE | 102 | =TINYMCEPLUGIN_INIT_browser= | See [[%TOPIC%#Browser_Specific_Settings][Browser Specific Settings]] below | Add extra parameters to =TINYMCEPLUGIN_INIT= string for specific browsers | 103 | =TINYMCEPLUGIN_DISABLE= | 0 | If set to 1, disables TinyMCEPlugin | 104 | =NOWYSIWYG= | 0 | If this global setting is set to 1, TinyMCEPlugin (and all other WYSIWYG editors) will be disabled. | 105 | =TINYMCEPLUGIN_BAD_BROWSERS= | =(?i-xsm:Konqueror)= | A regular expression that matches the user-agent string of any browser for which !TinyMCE should not be loaded. | 106 | =TINYMCEPLUGIN_DEBUG= | 0 | If set to 1, the uncompressed version of !TinyMCE Javascript and CSS sources will be loaded by the browser. This is very helpful when debugging. | 107 108 ---+++ Browser Specific Settings 109 Additional options may be set for specific browsers. You can define extra options for MSIE, OPERA, GECKO and SAFARI. For example, 110 <verbatim> * Set TINYMCEPLUGIN_INIT_MSIE = paste_auto_cleanup_on_paste : false 98 111 </verbatim> 99 112 The defaults are: 100 113 <verbatim> 101 MSIE => ' paste_auto_cleanup_on_paste : true',114 MSIE => '', 102 115 OPERA => '', 103 116 GECKO => 'gecko_spellcheck : true', 104 117 SAFARI => '', 105 118 </verbatim> 106 * Warning: if you enable =paste_auto_cleanup_on_paste= then it automatically implies =paste_use_dialog= on all non-MSIE browsers. 107 108 You can *disable* the plugin in any web or topic, or for any specific user, by setting =TINYMCEPLUGIN_DISABLE= to 1. e.g. 109 <verbatim> * Set TINYMCEPLUGIN_DISABLE = 1 110 </verbatim> 111 The plugin also respects the global =NOWYSIWYG= setting, which affects all 112 WYSIWYG editors. 113 114 Some browsers don't support Tiny MCE. You can prevent the editor from 115 being invoked on these browsers by setting =TINYMCEPLUGIN_BAD_BROWSERS= to a regular expression that matches the user-agent string for any broken browsers. The default is =(?i-xsm:Konqueror)=. For a full list of supported browsers see http://wiki.moxiecode.com/index.php/TinyMCE:Compatibility 116 119 120 ---+++ Additional !TinyMCE Plugins 121 Documentation for standard plugins shipped with !TinyMCE can be found at [[http://wiki.moxiecode.com/index.php/TinyMCE:Plugins]]. 122 123 Some notable plugins: 124 | *Plugin Name* | *Toolbar buttons* | *Description* | *Notes* | 125 | [[http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/autoresize][autoresize]] | - | Automatically resizes the editor to the content inside it | | 126 | [[http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/emotions][emotions]] | emotions | Insert smiley images into the !TinyMCE editable area | | 127 | [[http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/iespell][iespell]] | iespell | Provides spell check for Internet Explorers | | 128 | [[http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/insertdatetime][insertdatetime]] | insertdate, inserttime | Provides buttons to insert customised date and time strings | | 129 | [[http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/media][media]] | media | Handles embedded media such as !QuickTime, !Flash, !ShockWave, !RealPlayer and Windows Media Player | Requires customisation of your edit templates | 130 | [[http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/paste][paste]] | pastetext, pasteword, selectall | *Enabled by default in Foswiki* | Added here to show extra toolbar buttons that are available | 131 | [[http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/spellchecker][spellchecker]] | spellchecker | Adds spellchecker functionality to !TinyMCE by providing a new button that performs a AJAX call to a backend PHP page that uses PSpell/ASpell or Google spellchecker | | 132 | [[http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/style][style]] | styleprops | Adds CSS style editing support to !TinyMCE, this will enable you to edit almost any CSS style property in a visual way. | Generally it's desirable to keep wiki topics free of HTML/CSS | 133 | [[http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/visualchars][visualchars]] | visualchars | Adds the possibility to see invisible characters like | | 134 | [[http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/wordcount][wordcount]] | - | Display the number of words down in the right corner of the editor. | | 135 | [[http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/xhtmlxtras][xhtmlxtras]] | cite, ins, del, abbr, acronym | Adds support for some XHTML elements, including cite, ins, del, abbr, and acronym. | Generally XHTML in topics is not desirable. Foswiki plugins exist to provide more friendly TML markup | 136 137 138 ---++ Frequently Asked Questions 139 140 The topic [[TinyMCEFrequentlyAskedQuestions]] contains more help with things like: "How do I configure the buttons in my skin?", "How do I disable the WYSIWYG?" etc. 141 142 ---- 143 ---+++ WysiwygPlugin Settings 144 TinyMCEPlugin depends on WysiwygPlugin to do the conversions from HTML to TML (Topic Markup Language) and back again. For more information, see WysiwygPlugin. 117 145 %INCLUDE{"%SYSTEMWEB%.WysiwygPluginSettings"}% 118 119 You can use the [[%SYSTEMWEB%.PreferenceSettings][preference setting]] =TINYMCEPLUGIN_DEBUG= to make the editor load uncompressed Javascript and CSS. This is very helpful when debugging. e.g. 120 <verbatim> * Set TINYMCEPLUGIN_DEBUG = 1 121 </verbatim> 122 123 ---++ Frequently Asked Questions 124 125 The topic TinyMCEFrequentlyAskedQuestions contains more help with things like: "How do I configure the buttons in my skin?", "How do I disable the WYSIWYG?" etc. 146 ---- 126 147 127 148 ---++ Plugin Info … … 136 157 | Release: | %$RELEASE% | 137 158 | Change History: | <!-- versions below in reverse order --> | 138 | 21 Oct 2009 | Foswikitask:Item1558: Tiny MCE project now supports Opera, so remove it from _BAD_BROWSERS | 159 | 29 Oct 2009 | Foswikitask:Item2245: Updated documentation, removed redundant setting: =paste_auto_cleanup_on_paste : true= for MSIE browsers (!TinyMCE now defaults to =true= for all browsers) | 160 | 21 Oct 2009 | Foswikitask:Item1558: !TinyMCE project now supports Opera, so remove it from _BAD_BROWSERS | 139 161 | 18 Oct 2009 | Foswikitask:Item2270: Fix wordcount plugin to show correct count when user first enters edit mode | 140 | 17 Oct 2009 | Foswikitask:Item2245: Upgrade to TinyMCE 3.2.7 |162 | 17 Oct 2009 | Foswikitask:Item2245: Upgrade to !TinyMCE 3.2.7 | 141 163 | 20 Sep 2009 | Foswikitask:Item2121: Remove 2 MB of developer files that are not used | 142 164 | 19 Sep 2009 | Foswikitask:Item2037: Fix fullscreen-to-WikiText transition | - Property svn:mergeinfo changed
-
trunk/TinyMCEPlugin/lib/Foswiki/Plugins/TinyMCEPlugin.pm
r5340 r5389 19 19 20 20 our $VERSION = '$Rev$'; 21 our $RELEASE = '2 0 Sep2009';21 our $RELEASE = '29 Oct 2009'; 22 22 our $SHORTDESCRIPTION = 'Integration of the Tiny MCE WYSIWYG Editor'; 23 23 our $NO_PREFS_IN_TOPIC = 1; … … 79 79 HERE 80 80 our %defaultINIT_BROWSER = ( 81 MSIE => ' paste_auto_cleanup_on_paste : true',81 MSIE => '', 82 82 OPERA => '', 83 83 GECKO => 'gecko_spellcheck : true', -
trunk/TinyMCEPlugin/lib/Foswiki/Plugins/TinyMCEPlugin/MANIFEST
r5301 r5389 13 13 pub/System/TinyMCEPlugin/link.gif 0644 14 14 pub/System/TinyMCEPlugin/outdent.gif 0644 15 pub/System/TinyMCEPlugin/screenshot. gif064415 pub/System/TinyMCEPlugin/screenshot.png 0644 16 16 pub/System/TinyMCEPlugin/tinymce.gif 0644 17 17 pub/System/TinyMCEPlugin/tinymce/build.bat 0644 -
trunk/TinyMCEPlugin/pub/System/TinyMCEPlugin/foswiki.js
- Property svn:mergeinfo changed
/branches/Release01x00/TinyMCEPlugin/pub/System/TinyMCEPlugin/foswiki.js merged: 5353-5388
- Property svn:mergeinfo changed
-
trunk/TinyMCEPlugin/pub/System/TinyMCEPlugin/foswiki_src.js
- Property svn:mergeinfo changed (with no actual effect on merging)
-
trunk/TinyMCEPlugin/pub/System/TinyMCEPlugin/foswiki_tiny.js
- Property svn:mergeinfo changed
/branches/Release01x00/TinyMCEPlugin/pub/System/TinyMCEPlugin/foswiki_tiny.js merged: 5353-5388
- Property svn:mergeinfo changed
-
trunk/TinyMCEPlugin/pub/System/TinyMCEPlugin/foswiki_tiny_src.js
- Property svn:mergeinfo changed (with no actual effect on merging)
-
trunk/TinyMCEPlugin/pub/System/TinyMCEPlugin/tinymce/jscripts/tiny_mce/plugins/foswikibuttons
- Property svn:mergeinfo changed (with no actual effect on merging)
-
trunk/TinyMCEPlugin/pub/System/TinyMCEPlugin/tinymce/jscripts/tiny_mce/plugins/foswikiimage
- Property svn:mergeinfo changed (with no actual effect on merging)
Note: See TracChangeset
for help on using the changeset viewer.
