Ticket #5368: 5368.patch
File 5368.patch, 1.4 KB (added by , 14 years ago) |
---|
-
_source/plugins/wysiwygarea/plugin.js
254 254 if ( !CKEDITOR.env.ie ) 255 255 paddingBlock.appendBogus(); 256 256 } 257 257 258 258 range.select(); 259 259 editor.selectionChange(); 260 260 } … … 677 677 data += activationScript; 678 678 679 679 CKEDITOR._[ 'contentDomReady' + editor.name ] = contentDomReady; 680 681 // The iframe is recreated on each call of setData, so we need to clear DOM objects 682 this.clearCustomData(); 680 683 createIFrame( data ); 681 684 }, 682 685 … … 714 717 iframe.getFrameDocument().getBody().setHtml( data ); 715 718 }, 716 719 717 unload : function( holderElement)720 clearCustomData : function() 718 721 { 722 if ( !editor.document ) 723 return; 724 719 725 editor.document.getDocumentElement().clearCustomData(); 720 726 editor.document.getBody().clearCustomData(); 721 727 722 728 editor.window.clearCustomData(); 723 729 editor.document.clearCustomData(); 724 730 731 iframe.clearCustomData(); 732 }, 733 734 unload : function( holderElement ) 735 { 736 this.clearCustomData(); 737 725 738 editor.window = editor.document = iframe = mainElement = isPendingFocus = null; 726 739 727 740 editor.fire( 'contentDomUnload' );