This question about Using an extension: Answered but needs rewriting
This may be a more general question than just for this plugin, but I'm wondering if it might be possible and make sense to automatically include a <sticky> tag in the %CODE% macro and a </sticky> in the %ENDCODE% macro? I always want text between these two macros to be protected from reformatting by the WYSIWYG editor.
--
LeilaPearson - 09 Sep 2010
For what it's worth, if you can convert the CODE/ENDCODE to use XML-ish tags instead, you can register such a tag to be excluded from processing by WYSIWYG -
api, and check out the code the for
DirectedGraphPlugin which protects
<dot>...</dot>
But to protect a CODE/ENDCODE section, I think that requires some more work on
WysiwygPlugin.
(personally I wish we could make STARTSECTION/ENDSECTION smarter, and centralise section-like functionality into the Foswiki core, instead of having all these commonTagsHandler plugins).
--
PaulHarvey - 09 Sep 2010