Changeset 4167


Ignore:
Timestamp:
09/01/2009 08:58:29 AM (5 years ago)
Author:
garry.yao
Message:

Fixing #4241: Float panels are left on screen while editor is destroyed.

Location:
CKEditor/trunk/_source
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • CKEditor/trunk/_source/plugins/floatpanel/plugin.js

    r4027 r4167  
    5555 
    5656                        this.element = element; 
     57 
     58                        // Register panels to editor for easy destroying ( #4241 ). 
     59                        editor.panels ? editor.panels.push( element ) : editor.panels = [ element ]; 
     60 
    5761 
    5862                        this._ = 
  • CKEditor/trunk/_source/themes/default/theme.js

    r3949 r4167  
    153153                destroy : function( editor ) 
    154154                { 
    155                         var container = editor.container; 
     155                        var container = editor.container, 
     156                                panels = editor.panels; 
    156157 
    157158                        /* 
     
    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                        { 
Note: See TracChangeset for help on using the changeset viewer.
© 2003 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy