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
This commit is contained in:
Andrew Ozz 2014-03-19 02:29:12 +00:00
parent 15e74ab98a
commit 04f3b0e0a5

View File

@ -42,10 +42,10 @@ tinymce.PluginManager.add( 'wordpress', function( editor ) {
DOM.setStyle( iframe, 'height', iframe.clientHeight + pixels ); // Resize iframe DOM.setStyle( iframe, 'height', iframe.clientHeight + pixels ); // Resize iframe
if ( state === 'hide' ) { if ( state === 'hide' ) {
setUserSetting('hidetb', '1'); setUserSetting('hidetb', '0');
wpAdvButton && wpAdvButton.active( false ); wpAdvButton && wpAdvButton.active( false );
} else { } else {
setUserSetting('hidetb', '0'); setUserSetting('hidetb', '1');
wpAdvButton && wpAdvButton.active( true ); wpAdvButton && wpAdvButton.active( true );
} }
} }
@ -62,7 +62,7 @@ tinymce.PluginManager.add( 'wordpress', function( editor ) {
// Hide the toolbars after loading // Hide the toolbars after loading
editor.on( 'PostRender', function() { editor.on( 'PostRender', function() {
if ( getUserSetting('hidetb', '1') === '1' ) { if ( getUserSetting('hidetb', '0') === '0' ) {
toggleToolbars( 'hide' ); toggleToolbars( 'hide' );
} }
}); });