TypeError: window.tinyMCE.execInstanceCommand is not a function
-
Previously the issue was this
editor pop screen was not workingTypeError: window.tinyMCE.execInstanceCommand is not a function
with current version of wordpressi 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 pluginNow i have again a problem short code is not displaying the content getting this error
[Gallery not found]
- The topic ‘TypeError: window.tinyMCE.execInstanceCommand is not a function’ is closed to new replies.