This is an experimental version of TinyMCECleanStickyBitsPlugin.
To configure your Foswiki to install from this repository, modify the
{ExtensionsRepositories}
setting in your
lib/LocalSite.cfg
like this:
$Foswiki::cfg{ExtensionsRepositories} = 'Foswiki.org=(http://foswiki.org/Extensions/,http://foswiki.org/pub/Extensions/);Local=(http://365847.689093.cn/Extensions/Testing/,http://365847.689093.cn/pub/Extensions/Testing/)';
Read more about configuring Extension repositories
TinyMCE Clean Sticky Bits Plugin
Toolbar button to clean a selection of sticky attributes that would prevent a clean conversion to
WikiText
Plugin Preferences
Provides the
TinyMCE plugin
foswikiclean
, which should be enabled by listing it in the
TINYMCEPLUGIN_ADDITIONAL_MCEPLUGINS
preference setting. It provides the following toolbar buttons:
-
foswikiclean
- clean the current selection of any extraneous attributes that would cause the html2tml conversion to retain the HTML representation instead of being converted to WikiText. This is achieved in part by exporting the WYSIWYGPLUGIN_STICKYBITS
preference variable to the foswikiclean
plugin in TinyMCE. The foswikiclean
toolbar icon state changes to a clickable alert icon if the selection contains sticky attributes.
The
TinyMCEPlugin toolbar may be customised to include these buttons by listing them in the
TINYMCEPLUGIN_ADDITIONAL_BUTTONS1
, TINYMCEPLUGIN_ADDITIONAL_BUTTONS2
, etc. preference settings.
Alternatively,
TinyMCECleanStickyBitsPlugin will automatically:
- Add itself to the
TINYMCEPLUGIN_ADDITIONAL_PLUGINS
variable
- Inhibit this behaviour by setting
TINYMCECLEANSTICKYBITSPLUGIN_NO_AUTOLOAD = on
- Insert the toolbar buttons to the right of the
tablecontrols
button, wherever that appears among the TINYMCEPLUGIN_BUTTONS[n]
and TINYMCEPLUGIN_ADDITIONAL_BUTTONS[n]
variables.
- Inhibit this behaviour by setting
TINYMCECLEANSTICKYBITSPLUGIN_NO_AUTOTOOLBAR = on
Installation
You do not need to install anything in the browser to use this extension. The following instructions are for the administrator who installs the extension on the server.
Open configure, and open the "Extensions" section. Use "Find More Extensions" to get a list of available extensions. Select "Install".
If you have any problems, or if the extension isn't available in
configure
, then you can still install manually from the command-line. See
http://foswiki.org/Support/ManuallyInstallingExtensions for more help.
Plugin Info
This plugin uses icons from
http://www.famfamfam.com/lab/icons/silk/
(see also:
Foswiki:Extensions.FamFamFamContrib).