Ticket #6640: 6640_3.patch

File 6640_3.patch, 1.8 KB (added by Sa'ar Zac Elias, 13 years ago)
  • _source/plugins/floatpanel/plugin.js

     
    6060                                children : [],
    6161                                dir : editor.lang.dir
    6262                        };
     63
     64                        editor.on( 'mode', function(){ this.hide(); }, this );
    6365                },
    6466
    6567                proto :
  • _source/plugins/menubutton/plugin.js

     
    2929                if ( _.state === CKEDITOR.TRISTATE_DISABLED )
    3030                        return;
    3131
    32                 _.previousState = _.state;
    33 
    3432                // Check if we already have a menu for it, otherwise just create it.
    3533                var menu = _.menu;
    3634                if ( !menu )
     
    4038
    4139                        menu.onHide = CKEDITOR.tools.bind( function()
    4240                                {
    43                                         this.setState( _.previousState );
     41                                        this.setState( this.modes && this.modes[ editor.mode ] ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_DISABLED );
    4442                                },
    4543                                this );
    4644
    4745                        // Initialize the menu items at this point.
    4846                        if ( this.onMenu )
    49                         {
    5047                                menu.addListener( this.onMenu );
    51                         }
    5248                }
    5349
    5450                if ( _.on )
  • _source/plugins/richcombo/plugin.js

     
    244244                                        if ( me.className )
    245245                                                this.element.getFirst().removeClass( me.className + '_panel' );
    246246
    247                                         me.setState( CKEDITOR.TRISTATE_OFF );
     247                                        me.setState( me.modes && me.modes[ editor.mode ] ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_DISABLED );
    248248
    249249                                        me._.on = 0;
    250250
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy