Small issues in Tinymce
-
Hello Praveen,
Excellent code dude!!
But i have found a small issue in tinymce file window.php
/wp-content/plugins/cool-video-gallery/tinymce/window.phpI like to help you my bro
In window.php
comment these lines
//if(window.tinyMCE) {
// window.tinyMCE.execInstanceCommand(‘content’, ‘mceInsertContent’, false, tagtext);
// tinyMCEPopup.editor.execCommand(‘mceRepaint’);
// tinyMCEPopup.close();
//}
//return;add these lines
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;
}
let me know if there is any concern.
Thanks
Aadil
- The topic ‘Small issues in Tinymce’ is closed to new replies.