Item11921: Does SUPPORTS_PARA_INDENT need to be in Foswiki.pm?
Priority: Normal
Current State: No Action Required
Released In: n/a
Target Release: n/a
Applies To: Engine
Component:
Branches:
In
Foswiki.pm
we find the line:
# This foswiki supports : paragraph indent
$initialContext->{SUPPORTS_PARA_INDENT} = 1;
Core code doesn't read that context, it is used by
TINYMCEPLUGIN_INIT
(TinyMCE),
Node.pm
and TML2HTML.pm (Wysiwyg).
Because TinyMCE depends on WysiwygPlugin, this context could be set in
initPlugin
, adding a version check:
if ( $Foswiki::Plugins::VERSION >= 2.3 ) {
Foswiki::Func::getContext()->{'SUPPORTS_PARA_INDENT'} = 1;
}
--
ArthurClemens - 01 Jun 2012
Yes, it does. The context is communicating to plugins what the
core does, not what the
plugin does. In this case the core (specifically, Render.pm) supports paragraph indents, so the context variable is set.
--
CrawfordCurrie - 12 Jun 2012