Make WordPress Core

Changeset 6773


Ignore:
Timestamp:
02/10/2008 06:27:03 AM (16 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/js/tinymce/plugins/wordpress/editor_plugin.js

    r6694 r6773  
    1717            // Hides the specified toolbar and resizes the iframe
    1818            ed.onPostRender.add(function() {
    19                 DOM.hide(ed.controlManager.get(tbId).id);
    20                 t._resizeIframe(ed, tbId, 28);
     19                if ( ed.getParam('wordpress_adv_hidden', 1) ) {
     20                    DOM.hide(ed.controlManager.get(tbId).id);
     21                    t._resizeIframe(ed, tbId, 28);
     22                }
    2123            });
    2224
     
    3436                image : url + '/img/page.gif',
    3537                onclick : function() {
    36         //          ed.execCommand('mcePageBreak');
    3738                    ed.execCommand('mceInsertContent', 0, nextpageHTML);
    3839                }
     
    6263                        DOM.show(id);
    6364                        t._resizeIframe(ed, tbId, -28);
     65                        ed.settings.wordpress_adv_hidden = 0;
    6466                    } else {
    6567                        cm.setActive('wp_adv', 0);
    6668                        DOM.hide(id);
    6769                        t._resizeIframe(ed, tbId, 28);
     70                        ed.settings.wordpress_adv_hidden = 1;
    6871                    }
    6972                }
Note: See TracChangeset for help on using the changeset viewer.