TinyMCE: Restore old wordpress_adv_hidden editor parameter to enable force-showing the kitchen sink.
props azaozz. see #27963, for trunk. Built from https://develop.svn.wordpress.org/trunk@28181 git-svn-id: http://core.svn.wordpress.org/trunk@28012 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
1613157773
commit
a6eedd18b2
@ -63,7 +63,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', '0') === '0' ) {
|
if ( editor.getParam( 'wordpress_adv_hidden', true ) && getUserSetting( 'hidetb', '0' ) === '0' ) {
|
||||||
toggleToolbars( 'hide' );
|
toggleToolbars( 'hide' );
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
File diff suppressed because one or more lines are too long
Binary file not shown.
Loading…
Reference in New Issue
Block a user