Optiontree conflict
-
Hi there!
For anybody, like me, facing a conflict between optiontree based themes and adding shortcode interface, I found a solution I want to share:
pointing at the leaguemanager plugin directory, edit this file admin/tinymce/window.php, changing line 17 from this:
require_once(ABSPATH.'/wp-admin/admin.php');
to this:
//require_once(ABSPATH.'/wp-admin/admin.php');
Then edit admin/tinymce/tinymce.js changing last block of code:if(window.tinyMCE) { window.tinyMCE.execInstanceCommand('content', 'mceInsertContent', false, tagtext); //Peforms a clean up of the current editor HTML. //tinyMCEPopup.editor.execCommand('mceCleanup'); //Repaints the editor. Sometimes the browser has graphic glitches. tinyMCEPopup.editor.execCommand('mceRepaint'); tinyMCEPopup.close(); } return;
into this:
if(window.tinyMCE) { 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;
In order to account API diffs
and that’s all.
- The topic ‘Optiontree conflict’ is closed to new replies.