Item11921: Does SUPPORTS_PARA_INDENT need to be in Foswiki.pm?

pencil
Priority: Normal
Current State: No Action Required
Released In: n/a
Target Release: n/a
Applies To: Engine
Component:
Branches:
Reported By: ArthurClemens
Waiting For:
Last Change By: CrawfordCurrie
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

 

ItemTemplate edit

Summary Does SUPPORTS_PARA_INDENT need to be in Foswiki.pm?
ReportedBy ArthurClemens
Codebase trunk
SVN Range
AppliesTo Engine
Component
Priority Normal
CurrentState No Action Required
WaitingFor
Checkins
TargetRelease n/a
ReleasedIn n/a
CheckinsOnBranches
trunkCheckins
Release01x01Checkins
Topic revision: r2 - 12 Jun 2012, CrawfordCurrie
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy