Ticket #3219: 3219.patch

File 3219.patch, 1.4 KB (added by Artur Formella, 15 years ago)
  • _source/plugins/dialog/plugin.js

     
    507507                        else
    508508                                return;
    509509
     510                        CKEDITOR.fire( 'beforeDialogOpen', definition );
     511
    510512                        // First, set the dialog to an appropriate size.
    511513                        this.resize( definition.minWidth, definition.minHeight );
    512514
  • _source/plugins/floatpanel/plugin.js

     
    6262                                iframe : iframe,
    6363                                children : []
    6464                        }
     65
     66                        // Hide panel
     67                        var hide = function( data )
     68                        {
     69                                if ( this.element.isVisible() )
     70                                        this.hide();
     71                        };
     72                        CKEDITOR.on( "beforeDialogOpen" , hide, this );
     73                        CKEDITOR.on( "beforePanelOpen" , hide, this );
    6574                },
    6675
    6776                proto :
  • _source/plugins/panel/plugin.js

     
    202202
    203203        showBlock : function( name )
    204204        {
     205                CKEDITOR.fire( 'beforePanelOpen', name );
     206
    205207                var blocks = this._.blocks,
    206208                        block = blocks[ name ],
    207209                        current = this._.currentBlock;
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy