• Change in admin/tinymce/tinymce.js at bottom:
    THIS
    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;
    }

    WITH THIS:

    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;
    }

    https://ww.wp.xz.cn/plugins/leaguemanager/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Fixed issue Tiny MCE’ is closed to new replies.