TinyMCE show/hide toolbar row: fix the value for `getUserSetting('hidetb')`: 0 == hidden, 1 == visible, see #24067

Built from https://develop.svn.wordpress.org/trunk@27602


git-svn-id: http://core.svn.wordpress.org/trunk@27445 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Ozz 2014-03-19 02:30:15 +00:00
parent c2a5748582
commit 4428dc3b7c
3 changed files with 4 additions and 4 deletions

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' );
} }
}); });

File diff suppressed because one or more lines are too long