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.]