Item11710: POP incompatible with TMCE

pencil
Priority: Normal
Current State: Closed
Released In: n/a
Target Release:
Applies To: Extension
Component: PageOptimizerPlugin
Branches: trunk
Reported By: OliverKrueger
Waiting For:
Last Change By: OliverKrueger
Editing a topic starts with a TMCE popup saying:
Unable to install TinyMCE: could not read "TINYMCEPLUGIN_INIT" from FoswikiTiny.init.
This does not happen when POP is disabled.

Tested with

Maybe related: Item11251

-- OliverKrueger - 31 Mar 2012

That's because POP violates ordering constraints (by purpose) between somefile.js and inline-javascript blocks.

The problem is also triggered because FoswikiTiny.install() is called too early in foswiki.js, i.e. before all of the page has been loaded. Normally, a js plugin should wait for that event to happen before running any code for exactly the reason that we see this problem reported above.

Another way to cure the problem would be to add an exclude feature to POP not to cache any js matching a specific pattern. Made a new release that adds this feature.

Works now when specifying {ExcludeJavaScript} = 'TinyMCEPlugin' in configure.

I am not trying to rework the TinyMCEPlugin's init process as this seems to be a lot more work.

-- MichaelDaum - 02 Apr 2012

Cool. Thanks. smile

-- OliverKrueger - 02 Apr 2012
 
Topic revision: r4 - 02 Apr 2012, OliverKrueger
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