Plugin assumes a single TinyMCE instance
-
The JavaScript responsible for replacing the shortcode with the embed assumes a single TinyMCE instance is present in the Edit Post screen. When additional instances are present, the placeholder embed is displayed until the post editor is focused and becomes the active editor again.
The current code responsible looks like
(jQuery)( tinyMCE.activeEditor.dom.doc.body ) .find( "#playbuzz_info_" + id )..........;It can be updated to loop through editors and replace shortcodes with embeds in all of them.
jQuery.each( tinyMCE.editors, function( index, value ){ jQuery( value.dom.doc.body ) .find("#playbuzz_info_" + id)......;
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Plugin assumes a single TinyMCE instance’ is closed to new replies.