Created
October 30, 2014 15:30
-
-
Save trys/5ce5c48dc98eadc6680b to your computer and use it in GitHub Desktop.
WordPress TinyMCE - refresh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$( '.wp-editor-wrap' ).each( function () { | |
var id = $( this ).parent().data( 'id' ); | |
tinyMCE.get( id ).remove(); | |
switchEditors.go( id , 'tmce' ); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment