Ticket #4362: 4362.patch

File 4362.patch, 3.7 KB (added by Garry Yao, 15 years ago)
  • _source/plugins/richcombo/plugin.js

     
    273273                                        me.setState( CKEDITOR.TRISTATE_OFF );
    274274                                };
    275275
     276                        panel.on( 'showBlock', function()
     277                        {
     278                                this.fire( 'open', panel );
     279                        }, this );
     280
    276281                        if ( this.init )
    277282                                this.init();
    278283                },
     
    351356        }
    352357});
    353358
     359CKEDITOR.event.implementOn( CKEDITOR.ui.richCombo.prototype, true );
    354360CKEDITOR.ui.prototype.addRichCombo = function( name, definition )
    355361{
    356362        this.add( name, CKEDITOR.UI_RICHCOMBO, definition );
  • _source/plugins/menu/plugin.js

     
    151151                                        },
    152152                                        this );
    153153
     154                                        panel.on( 'showBlock', function()
     155                                        {
     156                                                this.fire( 'open', panel );
     157                                        }, this );
     158
     159
    154160                                        // Create an autosize block inside the panel.
    155161                                        var block = panel.addBlock( this.id );
    156162                                        block.autoSize = true;
     
    241247                }
    242248        });
    243249
     250        CKEDITOR.event.implementOn( CKEDITOR.menu.prototype, true );
     251
    244252        function sortItems( items )
    245253        {
    246254                items.sort( function( itemA, itemB )
  • _source/plugins/floatpanel/plugin.js

     
    221221                                                        if ( panel.isLoaded )
    222222                                                                setHeight();
    223223                                                        else
    224                                                                 panel.onLoad = setHeight;
     224                                                                panel.on( 'load', setHeight );
    225225                                                }
    226226                                                else
    227                                                         element.getFirst().removeStyle( 'height' );
     227                                                        element.getFirst().removeStyle('height');
    228228
     229                                                panel.isLoaded ?
     230                                                        this.fire( 'showBlock', block )
     231                                                        : panel.on( 'load', function( evt )
     232                                                          {
     233                                                                  evt.removeListener();
     234                                                                  this.fire( 'showBlock', block );
     235                                                          }, this );
     236
    229237                                                // Set the IFrame focus, so the blur event gets fired.
    230238                                                CKEDITOR.tools.setTimeout( function()
    231239                                                        {
     
    326334                        }
    327335                }
    328336        });
     337
     338        CKEDITOR.event.implementOn( CKEDITOR.ui.floatPanel.prototype, true );
     339
    329340})();
  • _source/plugins/panelbutton/plugin.js

     
    133133                                                                _.on = 0;
    134134                                                                me.setState( CKEDITOR.TRISTATE_OFF );
    135135                                                };
     136                                panel.on( 'showBlock', function()
     137                                {
     138                                        this.fire( 'open', panel );
     139                                }, this );
    136140                        }
    137141                }
    138142        });
    139143
     144        CKEDITOR.event.implementOn( CKEDITOR.ui.panelButton.prototype, true );
     145
    140146})();
  • _source/plugins/panel/plugin.js

     
    141141                                if ( CKEDITOR.env.isCustomDomain() )
    142142                                        doc.$.domain = document.domain;
    143143
    144                                 var onLoad = CKEDITOR.tools.addFunction( CKEDITOR.tools.bind( function( ev )
     144                                var onLoad = CKEDITOR.tools.addFunction( CKEDITOR.tools.bind( function()
    145145                                        {
    146146                                                this.isLoaded = true;
    147                                                 if ( this.onLoad )
    148                                                         this.onLoad();
     147                                                this.fire( 'load', this );
     148
    149149                                        }, this ) );
    150150
    151151                                doc.$.write(
     
    233233        }
    234234};
    235235
     236CKEDITOR.event.implementOn( CKEDITOR.ui.panel.prototype, true );
    236237CKEDITOR.ui.panel.block = CKEDITOR.tools.createClass(
    237238{
    238239        $ : function( blockHolder )
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy