• Resolved Kundan Singh

    (@kundansingh)


    Previously the issue was this
    editor pop screen was not working

    TypeError: window.tinyMCE.execInstanceCommand is not a function
    with current version of wordpress

    i have solved with help of this
    solution:
    if(window.tinyMCE) {

    /* get the TinyMCE version to account for API diffs */
    var tmce_ver=window.tinyMCE.majorVersion;

    if (tmce_ver>=”4″) {
    window.tinyMCE.execCommand(‘mceInsertContent’, false, tagtext);
    } else {
    window.tinyMCE.execInstanceCommand(‘content’, ‘mceInsertContent’, false, tagtext);
    }

    tinyMCEPopup.editor.execCommand(‘mceRepaint’);
    tinyMCEPopup.close();
    }
    return;
    }
    update it in your current plugin

    Now i have again a problem short code is not displaying the content getting this error

    [Gallery not found]

    https://wordpress.org/plugins/cool-video-gallery/

  • The topic ‘TypeError: window.tinyMCE.execInstanceCommand is not a function’ is closed to new replies.