Ticket #4241: 4241.patch

File 4241.patch, 1.2 KB (added by Garry Yao, 15 years ago)
  • _source/plugins/floatpanel/plugin.js

     
    5555
    5656                        this.element = element;
    5757
     58                        // Register panels to editor for easy destroying ( #4241 ).
     59                        editor.panels ? editor.panels.push( element ) : editor.panels = [ element ];
     60
     61
    5862                        this._ =
    5963                        {
    6064                                // The panel that will be floating.
  • _source/themes/default/theme.js

     
    152152
    153153                destroy : function( editor )
    154154                {
    155                         var container = editor.container;
     155                        var container = editor.container,
     156                                panels = editor.panels;
    156157
    157158                        /*
    158159                         * IE BUG: Removing the editor DOM elements while the selection is inside
     
    179180                        if ( container )
    180181                                container.remove();
    181182
     183                        for( var i = 0 ; panels && i < panels.length ; i++ )
     184                                        panels[ i ].remove();
     185
    182186                        if ( editor.elementMode == CKEDITOR.ELEMENT_MODE_REPLACE )
    183187                        {
    184188                                editor.element.show();
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy