From 04f3b0e0a52487ee01ce1a66b9237a2cdea2ba98 Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Wed, 19 Mar 2014 02:29:12 +0000 Subject: [PATCH] TinyMCE show/hide toolbar row: fix the value for `getUserSetting('hidetb')`: 0 == hidden, 1 == visible, see #24067 git-svn-id: https://develop.svn.wordpress.org/trunk@27602 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/js/tinymce/plugins/wordpress/plugin.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wp-includes/js/tinymce/plugins/wordpress/plugin.js b/src/wp-includes/js/tinymce/plugins/wordpress/plugin.js index 0d2f34d288..d17f11411e 100644 --- a/src/wp-includes/js/tinymce/plugins/wordpress/plugin.js +++ b/src/wp-includes/js/tinymce/plugins/wordpress/plugin.js @@ -42,10 +42,10 @@ tinymce.PluginManager.add( 'wordpress', function( editor ) { DOM.setStyle( iframe, 'height', iframe.clientHeight + pixels ); // Resize iframe if ( state === 'hide' ) { - setUserSetting('hidetb', '1'); + setUserSetting('hidetb', '0'); wpAdvButton && wpAdvButton.active( false ); } else { - setUserSetting('hidetb', '0'); + setUserSetting('hidetb', '1'); wpAdvButton && wpAdvButton.active( true ); } } @@ -62,7 +62,7 @@ tinymce.PluginManager.add( 'wordpress', function( editor ) { // Hide the toolbars after loading editor.on( 'PostRender', function() { - if ( getUserSetting('hidetb', '1') === '1' ) { + if ( getUserSetting('hidetb', '0') === '0' ) { toggleToolbars( 'hide' ); } });