StaticMethod
addXMLTag($tag, \&fn) ...
brackets.
The simplest use of this function is something like this:
Foswiki::Plugins::WysiwygPlugin::addXMLTag( 'mytag', sub { 1 } );
A plugin may call this function more than once
e.g. to change the processing function for a tag.
However, only the original plugin may change the processing
for a tag.
Plugins should call this function from their initPlugin
handlers so that WysiwygPlugin will protect the XML-like tags
for all conversions, including REST conversions.
Plugins that are intended to be used with older versions of Foswiki
(e.g. 1.0.6) should check that this function is defined before calling it,
so that they degrade gracefully if an older version of WysiwygPlugin
(e.g. that shipped with 1.0.6) is installed.
![]() |
© 2025 D.Soost & D.Marxsen - All rights reserved © Of all articles by authors Trademarks are the property of their respective owners © Logo by Wikipedia, modified by Administrator | Impressum Disclaimer Datenschutzerklärung |