From 620fc6660ca5a771a1ad43bfcd5de713a2642e59 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Tue, 22 Apr 2014 13:49:28 +0000 Subject: [PATCH] TinyMCE: Restore old wordpress_adv_hidden editor parameter to enable force-showing the kitchen sink. props azaozz. see #27963, for trunk. git-svn-id: https://develop.svn.wordpress.org/trunk@28181 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/js/tinymce/plugins/wordpress/plugin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/js/tinymce/plugins/wordpress/plugin.js b/src/wp-includes/js/tinymce/plugins/wordpress/plugin.js index 64c5ff1c5a..02672ac3d1 100644 --- a/src/wp-includes/js/tinymce/plugins/wordpress/plugin.js +++ b/src/wp-includes/js/tinymce/plugins/wordpress/plugin.js @@ -63,7 +63,7 @@ tinymce.PluginManager.add( 'wordpress', function( editor ) { // Hide the toolbars after loading editor.on( 'PostRender', function() { - if ( getUserSetting('hidetb', '0') === '0' ) { + if ( editor.getParam( 'wordpress_adv_hidden', true ) && getUserSetting( 'hidetb', '0' ) === '0' ) { toggleToolbars( 'hide' ); } });