+
+ if ( $( '#wp-content-wrap' ).hasClass( 'html-active' ) && window.switchEditors &&
+ ( tinyMCEPreInit.mceInit.content && tinyMCEPreInit.mceInit.content.wpautop ) ) {
+ // The Text editor is default, run the initial content through pre_wpautop() to convert the paragraphs
+ $contnet.text( window.switchEditors.pre_wpautop( $contnet.text() ) );
+ }