[wp-trac] [WordPress Trac] #36933: TinyMCE failing when using ModPagespeed
WordPress Trac
noreply at wordpress.org
Wed Jun 29 22:06:26 UTC 2016
#36933: TinyMCE failing when using ModPagespeed
-------------------------------+------------------------------
Reporter: franmaWp | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version: 4.5.2
Severity: normal | Resolution:
Keywords: reporter-feedback | Focuses: javascript
-------------------------------+------------------------------
Comment (by franmaWp):
svg-painter.js is loaded correctly but when this code from svg-painter.js
is executed:
{{{
$(document).ready( function() {
// detection for browser SVG capability
if ( document.implementation.hasFeature(
'http://www.w3.org/TR/SVG11/feature#Image', '1.1' ) ) {
$( document.body ).removeClass( 'no-svg'
).addClass( 'svg' );
wp.svgPainter.init();
}
});
}}}
i get "TypeError: wp.svgPainter is undefined" then many Js admin
functionalities stop working. To solve the problem i move that script out
of wp.svgPainter Object.
To test this i am having SCRIPT_DEBUG=true
Any suggestions? thanks.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36933#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list