Ticket #7014: 7014.patch
File 7014.patch, 2.7 KB (added by , 13 years ago) |
---|
-
_source/themes/default/theme.js
243 243 244 244 destroy : function( editor ) 245 245 { 246 var container = editor.container; 247 container.clearCustomData(); 248 editor.element.clearCustomData(); 246 var container = editor.container, 247 element = editor.element; 249 248 250 249 if ( container ) 250 { 251 container.clearCustomData(); 251 252 container.remove(); 253 } 252 254 253 if ( editor.elementMode == CKEDITOR.ELEMENT_MODE_REPLACE ) 254 editor.element.show(); 255 256 delete editor.element; 257 } 255 if ( element ) 256 { 257 element.clearCustomData(); 258 editor.elementMode == CKEDITOR.ELEMENT_MODE_REPLACE && element.show(); 259 delete editor.element; 260 } 261 } 258 262 }; 259 263 })() ); 260 264 -
_source/plugins/richcombo/plugin.js
290 290 this._.value = value; 291 291 292 292 var textElement = this.document.getById( 'cke_' + this.id + '_text' ); 293 294 if ( !( value || text ) ) 295 { 296 text = this.label; 297 textElement.addClass( 'cke_inline_label' ); 298 } 299 else 300 textElement.removeClass( 'cke_inline_label' ); 293 if ( textElement ) 294 { 295 if ( !( value || text ) ) 296 { 297 text = this.label; 298 textElement.addClass( 'cke_inline_label' ); 299 } 300 else 301 textElement.removeClass( 'cke_inline_label' ); 301 302 302 textElement.setHtml( typeof text != 'undefined' ? text : value ); 303 textElement.setHtml( typeof text != 'undefined' ? text : value ); 304 } 303 305 }, 304 306 305 307 getValue : function() -
_source/plugins/editingblock/plugin.js
116 116 editor.on( 'destroy', function () 117 117 { 118 118 // -> currentMode.unload( holderElement ); 119 this._.modes[ this.mode ].unload( this.getThemeSpace( 'contents' ) ); 119 if ( this.mode ) 120 this._.modes[ this.mode ].unload( this.getThemeSpace( 'contents' ) ); 120 121 }); 121 122 } 122 123 }); -
_source/core/editor.js
547 547 if ( !noUpdate ) 548 548 this.updateElement(); 549 549 550 this.theme .destroy( this );550 this.theme && this.theme.destroy( this ); 551 551 552 552 this.fire( 'destroy' ); 553 553 CKEDITOR.remove( this );