Title: TypeError: window.tinyMCE.execInstanceCommand is not a function
Last modified: August 22, 2016

---

# TypeError: window.tinyMCE.execInstanceCommand is not a function

 *  Resolved [Kundan Singh](https://wordpress.org/support/users/kundansingh/)
 * (@kundansingh)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/typeerror-windowtinymceexecinstancecommand-is-not-a-function/)
 * 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/](https://wordpress.org/plugins/cool-video-gallery/)

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

 * ![](https://s.w.org/plugins/geopattern-icon/cool-video-gallery_658d3b.svg)
 * [Cool Video Gallery](https://wordpress.org/plugins/cool-video-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cool-video-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cool-video-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/cool-video-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cool-video-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cool-video-gallery/reviews/)

## Tags

 * [Wordpress update issue](https://wordpress.org/support/topic-tag/wordpress-update-issue/)

 * 0 replies
 * 1 participant
 * Last reply from: [Kundan Singh](https://wordpress.org/support/users/kundansingh/)
 * Last activity: [11 years, 3 months ago](https://wordpress.org/support/topic/typeerror-windowtinymceexecinstancecommand-is-not-a-function/)
 * Status: resolved