From ee919bb3b83f90adf585c6b5068dfa4672b69a85 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Sun, 10 Feb 2008 06:27:03 +0000 Subject: [PATCH] Maintain hidden toolbar state when switching to fullscreen. Props azaozz. fixes #5806 git-svn-id: https://develop.svn.wordpress.org/trunk@6773 602fd350-edb4-49c9-b593-d223f7449a82 --- .../js/tinymce/plugins/wordpress/editor_plugin.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/wp-includes/js/tinymce/plugins/wordpress/editor_plugin.js b/wp-includes/js/tinymce/plugins/wordpress/editor_plugin.js index 6851c54fe7..6c0c1a3907 100644 --- a/wp-includes/js/tinymce/plugins/wordpress/editor_plugin.js +++ b/wp-includes/js/tinymce/plugins/wordpress/editor_plugin.js @@ -16,8 +16,10 @@ // Hides the specified toolbar and resizes the iframe ed.onPostRender.add(function() { - DOM.hide(ed.controlManager.get(tbId).id); - t._resizeIframe(ed, tbId, 28); + if ( ed.getParam('wordpress_adv_hidden', 1) ) { + DOM.hide(ed.controlManager.get(tbId).id); + t._resizeIframe(ed, tbId, 28); + } }); // Register buttons @@ -33,7 +35,6 @@ title : 'wordpress.wp_page_desc', image : url + '/img/page.gif', onclick : function() { - // ed.execCommand('mcePageBreak'); ed.execCommand('mceInsertContent', 0, nextpageHTML); } }); @@ -61,10 +62,12 @@ cm.setActive('wp_adv', 1); DOM.show(id); t._resizeIframe(ed, tbId, -28); + ed.settings.wordpress_adv_hidden = 0; } else { cm.setActive('wp_adv', 0); DOM.hide(id); t._resizeIframe(ed, tbId, 28); + ed.settings.wordpress_adv_hidden = 1; } } });