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
This commit is contained in:
Ryan Boren 2008-02-10 06:27:03 +00:00
parent fb05c7e4b7
commit ee919bb3b8

View File

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