NOTE: If you are a developer, please use a private wiki based on foswiki/trunk on a daily base ...or use
trunk.foswiki.org to view this page for some minimal testing.
Use
Item9693 for docu changes for 1.2 and 2.0.
Item11921: Does SUPPORTS_PARA_INDENT need to be in Foswiki.pm?
| Priority: |
CurrentState: |
AppliesTo: |
Component: |
WaitingFor: |
| Normal |
No Action Required |
Engine |
|
|
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