Support » Plugin: Playbuzz » 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)......;
    • This topic was modified 2 years, 4 months ago by ajfleming.
Viewing 1 replies (of 1 total)
  • Plugin Author Playbuzz


    The issue is solved and awaiting WP VIP approval. We’ll send an update once the fix is available.

Viewing 1 replies (of 1 total)
  • The topic ‘Plugin assumes a single TinyMCE instance’ is closed to new replies.