Line: 1 to 1 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
TinyMCEPlugin | |||||||||||
Added: | |||||||||||
> > | ![]() | ||||||||||
Integration of the TinyMCE WYSIWYG Editor | |||||||||||
Deleted: | |||||||||||
< < | ![]() | ||||||||||
Added: | |||||||||||
> > | |||||||||||
This is an integration of the ![]()
The integration uses the TWiki:Plugins.WysiwygPlugin | |||||||||||
Line: 18 to 22 | |||||||||||
The editor automatically "switches itself off" (i.e. reverts to the old text-only window) when editing topics that contain TWiki content it can't handle, such as complex TWiki variables.
Editor Notes | |||||||||||
Added: | |||||||||||
> > | |||||||||||
The editor uses a translator module to convert from TWiki markup language (TML) to HTML and back. The translator converts special TWiki tags - such as %VARIABLES% - 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 TWiki features that are sensitive to formatting, such as Set statements, then you have to format those regions using 'Protect on save' or 'Protect forever'.
Installation InstructionsNOTES: | |||||||||||
Changed: | |||||||||||
< < |
| ||||||||||
> > |
| ||||||||||
| |||||||||||
Line: 54 to 60 | |||||||||||
Settings | |||||||||||
Added: | |||||||||||
> > | |||||||||||
You can override this setting by defining TINYMCEPLUGIN_DEBUG to enable some simple debug features.
| |||||||||||
Changed: | |||||||||||
< < | This setting contains all the options passed to the TinyMCE editor on startup.
For a full explanation of the available options, and guidance on reconfiguring TinyMCE, see the Moxicode TinyMCE Wiki![]() content_css setting. | ||||||||||
> > | This setting contains all the options passed to the TinyMCE editor on startup. For a full explanation of the available options, and guidance on reconfiguring TinyMCE, see the Moxicode TinyMCE Wiki![]() content_css setting. | ||||||||||
* Set INIT = mode:"textareas", editor_selector : "twikiTextarea", | |||||||||||
Line: 107 to 114 | |||||||||||
theme_advanced_resizing : true,
| |||||||||||
Changed: | |||||||||||
< < | content_css : "/pub/TWiki/TinyMCEPlugin/wysiwyg_src.css,/pub/TWiki/TWikiTemplates/base.css,/pub/TWiki/PatternSkin/style.css,/pub/TWiki/PatternSkin/colors.css" | ||||||||||
> > | content_css : "/pub/TWiki/TinyMCEPlugin/wysiwyg_src.css,/pub/TWiki/TWikiTemplates/base.css,/pub/TWiki/PatternSkin/style.css,/pub/TWiki/PatternSkin/colors.css" | ||||||||||
| |||||||||||
Line: 122 to 129 | |||||||||||
| |||||||||||
Changed: | |||||||||||
< < |
WYSIWYG_EXCLUDE - Prevent WYSIWYG editing
The global preference setting
If the plugin detects an excluded construct in the topic, it will refuse to allow the edit and will redirect to the default editor.
WYSIWYG_EDITABLE_CALLS - Exceptions to WYSIWYG_EXCLUDE
If you excluded
You should set
WYSIWYGPLUGIN_PROTECT_EXISTING_TAGS - Protect specific tags originally in the topic text
The
The default setting for this preference is defined within the plugin. It corresponds to
This feature may be disabled by setting the preference to a single comma. This does not guarantee that HTML markup will be removed; the conversion of HTML tags to TML markup remains subject to the other controls provided by the WysiwygPlugin, including the
WYSIWYGPLUGIN_PROTECT_TAG_BLOCKS - Protect specific tag blocks originally in the topic text
The
The default setting for this preference is defined within the plugin. It corresponds to
As an example, individual html tables can be protected by surrounding them with This feature may be disabled by setting the preference to a single comma.
WYSIWYGPLUGIN_STICKYBITS - Protect tags based upon their arguments
You can define the global preference This preference setting is used to tell the translator which attributes, when present on a tag, make it "stick" i.e. block conversion back to TML. For example, setting it to This setting is used only after the page has been processed by the editor. If the editor does not support a particular tag or attribute and the editor corrupts the tag, this setting will not be helpful. It is only used to prevent an HTML tag from being converted back to TML.
Format of the setting is
If a matching tag is found, that matches any of the attributes listed, the tag will not be converted back to TML. You can use perl regular expressions to match tag and attribute names, so The default setting for this preference are hard coded in the plugin. If you wish to change the settings, the following list is the default setting coded in the plugin: * Set WYSIWYGPLUGIN_STICKYBITS = (?!IMG).*=id,lang,title,dir,on.*; A=accesskey,coords,shape,target; BDO=dir; BR=clear; COL=char,charoff,span,valign,width; COLGROUP=align,char,charoff,span,valign,width; DIR=compact; DIV=align,style; DL=compact; FONT=size,face; H[0-9]=align; HR=align,noshade,size,width; LEGEND=accesskey,align; LI=value; OL=compact,start,type; P=align; PARAM=name,type,value,valuetype; PRE=width; Q=cite; TABLE=align,bgcolor,frame,rules,summary,width; TBODY=align,char,charoff,valign; TD=abbr,align,axis,bgcolor,char,charoff,headers,height,nowrap,rowspan,scope,valign,width; TFOOT=align,char,charoff,valign; TH=abbr,align,axis,bgcolor,char,charoff,height,nowrap,rowspan,scope,valign,width,headers; THEAD=align,char,charoff,valign; TR=bgcolor,char,charoff,valign; UL=compact,type <-- %JQREQUIRE{"chili"}% If you edit using the plain-text editor, you can use the <sticky>..</sticky> tags to delimit HTML (or TML) that you do not want to be WYSIWYG edited. | ||||||||||
> > |
WYSIWYG_EXCLUDE - Prevent WYSIWYG editing
The global preference setting
If the plugin detects an excluded construct in the topic, it will refuse to allow the edit and will redirect to the default editor.
WYSIWYG_EDITABLE_CALLS - Exceptions to WYSIWYG_EXCLUDE
If you excluded
You should set
WYSIWYGPLUGIN_PROTECT_EXISTING_TAGS - Protect specific tags originally in the topic text
The
The default setting for this preference is defined within the plugin. It corresponds to
This feature may be disabled by setting the preference to a single comma. This does not guarantee that HTML markup will be removed; the conversion of HTML tags to TML markup remains subject to the other controls provided by the WysiwygPlugin, including the
WYSIWYGPLUGIN_PROTECT_TAG_BLOCKS - Protect specific tag blocks originally in the topic text
The
The default setting for this preference is defined within the plugin. It corresponds to
As an example, individual html tables can be protected by surrounding them with This feature may be disabled by setting the preference to a single comma.
WYSIWYGPLUGIN_STICKYBITS - Protect tags based upon their arguments
You can define the global preference This preference setting is used to tell the translator which attributes, when present on a tag, make it "stick" i.e. block conversion back to TML. For example, setting it to This setting is used only after the page has been processed by the editor. If the editor does not support a particular tag or attribute and the editor corrupts the tag, this setting will not be helpful. It is only used to prevent an HTML tag from being converted back to TML.
Format of the setting is
If a matching tag is found, that matches any of the attributes listed, the tag will not be converted back to TML. You can use perl regular expressions to match tag and attribute names, so The default setting for this preference are hard coded in the plugin. If you wish to change the settings, the following list is the default setting coded in the plugin: * Set WYSIWYGPLUGIN_STICKYBITS = (?!IMG).*=id,lang,title,dir,on.*; A=accesskey,coords,shape,target; BDO=dir; BR=clear; COL=char,charoff,span,valign,width; COLGROUP=align,char,charoff,span,valign,width; DIR=compact; DIV=align,style; DL=compact; FONT=size,face; H[0-9]=align; HR=align,noshade,size,width; LEGEND=accesskey,align; LI=value; OL=compact,start,type; P=align; PARAM=name,type,value,valuetype; PRE=width; Q=cite; TABLE=align,bgcolor,frame,rules,summary,width; TBODY=align,char,charoff,valign; TD=abbr,align,axis,bgcolor,char,charoff,headers,height,nowrap,rowspan,scope,valign,width; TFOOT=align,char,charoff,valign; TH=abbr,align,axis,bgcolor,char,charoff,height,nowrap,rowspan,scope,valign,width,headers; THEAD=align,char,charoff,valign; TR=bgcolor,char,charoff,valign; UL=compact,type <-- %JQREQUIRE{"chili"}% If you edit using the plain-text editor, you can use the <sticky>..</sticky> tags to delimit HTML (or TML) that you do not want to be WYSIWYG edited. | ||||||||||
Configuring the buttons on TWiki < 4.2.0 | |||||||||||
Line: 126 to 133 | |||||||||||
Configuring the buttons on TWiki < 4.2.0 | |||||||||||
Added: | |||||||||||
> > | |||||||||||
When installed on TWiki versions before 4.2.0, this plugin replaces the old textarea editor with the TinyMCE editor. The shock of this change can be too much for some older contributors, so we have written instructions for reconfiguring your templates in TWiki:Plugins.TinyMCEFrequentlyAskedQuestions![]()
Plugin Info | |||||||||||
Changed: | |||||||||||
< < |
| ||||||||||
> > | Many thanks to the following sponsors for supporting this work:
| ||||||||||
| |||||||||||
Added: | |||||||||||
> > |
| ||||||||||
| |||||||||||
Changed: | |||||||||||
< < |
| ||||||||||
> > |
| ||||||||||
| |||||||||||
Line: 150 to 161 | |||||||||||
| |||||||||||
Changed: | |||||||||||
< < |
| ||||||||||
> > |
| ||||||||||
| |||||||||||
Line: 165 to 176 | |||||||||||
| |||||||||||
Changed: | |||||||||||
< < | Many thanks to the following sponsors for supporting this work:
<-- Do not attempt to edit this topic; it is auto-generated. Please add comments/questions/remarks to the Dev topic instead. -->
| ||||||||||
> > |
| ||||||||||
|