ellatrix / focus

Focus!
21 stars 5 forks source link

'styleselect' not collapsing on scroll. #3

Closed ellatrix closed 10 years ago

ellatrix commented 10 years ago

The styleselect TinyMCE menu (with h1 etc.) doesn't collapse when you scroll the window and the toolbars are fixed. The colour buttons do collapse, because you can use editor.controlManager.buttons... But it doesn't include styleselect.

tinymce.each( editorInstance.controlManager.buttons, function( button ) {
    if ( button._active && ( button.type === 'colorbutton' || button.type === 'panelbutton' || button.type === 'menubutton' ) ) {
        button.hidePanel();
    }
} );