Maintain hidden toolbar state when switching to fullscreen. Props azaozz. fixes #5806

git-svn-id: http://svn.automattic.com/wordpress/trunk@6773 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-02-10 06:27:03 +00:00
parent 4f25d8c305
commit 0a89479d1c
1 changed files with 6 additions and 3 deletions

View File

@ -16,8 +16,10 @@
// Hides the specified toolbar and resizes the iframe
ed.onPostRender.add(function() {
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;
}
}
});