Detecting when TinyMCE is “ready”

Unless your WP version is truly ancient, you should be able to use the tinymce-editor-init event triggered on editor init by “wp-includes/js/tinymce/plugins/wordpress/plugin.js”, eg (assuming your script is loading after jQuery):

jQuery( document ).on( 'tinymce-editor-init', function( event, editor ) {
    // Blah.
});

Leave a Comment