@nicolas72: Will you please post your own topic!
It’s not my own topic but here is the solution !
In tinymce\window.php
Comment the below lines
//if(window.tinyMCE) {
// window.tinyMCE.execInstanceCommand('content', 'mceInsertContent', false, tagtext);
// tinyMCEPopup.editor.execCommand('mceRepaint');
// tinyMCEPopup.close();
//}
//return;
//)
and put follwoing
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;
}
[Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]
@nicolas72
I’m wondering if you might be able to help me with this issue as well. I’m not using TinyMCE, I’m using WP Edit. However, I deactivated WP Edit and still the insert button will not work? Any ideas?