Ticket #3566: 3566.patch

File 3566.patch, 1.3 KB (added by Martin Kou, 14 years ago)
  • _source/plugins/menu/plugin.js

     
    1515
    1616                editor._.menuGroups = groupsOrder;
    1717                editor._.menuItems = {};
    18         }
     18        },
     19       
     20        requires : [ 'floatpanel' ]
    1921});
    2022
    2123CKEDITOR.tools.extend( CKEDITOR.editor.prototype,
  • _source/plugins/floatpanel/plugin.js

     
    1111(function()
    1212{
    1313        var panels = {};
     14        var isShowing = false;
    1415
    1516        function getPanel( editor, doc, parentElement, definition, level )
    1617        {
     
    101102                                var panel = this._.panel,
    102103                                        block = panel.showBlock( name );
    103104
     105                                isShowing = true;
     106
    104107                                var element = this.element,
    105108                                        iframe = this._.iframe,
    106109                                        definition = this._.definition,
     
    133136
    134137                                        focused.on( 'blur', function()
    135138                                                {
    136                                                         if ( !this._.activeChild )
     139                                                        if ( !this._.activeChild && !isShowing )
    137140                                                                this.hide();
    138141                                                },
    139142                                                this );
     
    217220
    218221                                if ( this.onShow )
    219222                                        this.onShow.call( this );
     223
     224                                isShowing = false;
    220225                        },
    221226
    222227                        hide : function()
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy