Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ( function() {
- var initialize = function() {
- var init, id, $wrap;
- for ( id in tinyMCEPreInit.mceInit ) {
- init = tinyMCEPreInit.mceInit[id];
- $wrap = tinymce.$( '#wp-' + id + '-wrap' );
- if ( ( $wrap.hasClass( 'tmce-active' ) || ! tinyMCEPreInit.qtInit.hasOwnProperty( id ) ) && ! init.wp_skip_init ) {
- tinymce.init( init );
- if ( ! window.wpActiveEditor ) {
- window.wpActiveEditor = id;
- }
- }
- }
- }
- if ( typeof tinymce !== 'undefined' ) {
- if ( tinymce.Env.ie && tinymce.Env.ie < 11 ) {
- tinymce.$( '.wp-editor-wrap ').removeClass( 'tmce-active' ).addClass( 'html-active' );
- } else {
- if ( document.readyState === 'complete' || document.readyState === 'interactive' ) {
- initialize();
- } else {
- document.addEventListener( 'DOMContentLoaded', initialize );
- }
- }
- }
- if ( typeof quicktags !== 'undefined' ) {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement