From 86e10358fddaaf7f9971428c308fee066a5adb8c Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Sun, 2 Aug 2015 20:00:56 +0000 Subject: [PATCH] TinyMCE: fix initializing the editor on switching Text => Visual when the Text editor is loaded first. Props stuartshields, peterwilsoncc, netweb, azaozz. Fixes #33192. git-svn-id: https://develop.svn.wordpress.org/trunk@33527 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/js/tinymce/plugins/wordpress/plugin.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/wp-includes/js/tinymce/plugins/wordpress/plugin.js b/src/wp-includes/js/tinymce/plugins/wordpress/plugin.js index 463fff6942..9f6d7147fa 100644 --- a/src/wp-includes/js/tinymce/plugins/wordpress/plugin.js +++ b/src/wp-includes/js/tinymce/plugins/wordpress/plugin.js @@ -520,11 +520,6 @@ tinymce.PluginManager.add( 'wordpress', function( editor ) { editor.settings.height = 300; } - // Start hidden when the Text editor is set to load first. - if ( tinymce.$( '#wp-' + editor.id + '-wrap' ).hasClass( 'html-active' ) ) { - editor.hide(); - } - each( { c: 'JustifyCenter', r: 'JustifyRight',