Ticket #5657: 5657.patch
File 5657.patch, 1.7 KB (added by , 14 years ago) |
---|
-
_source/plugins/wysiwygarea/plugin.js
270 270 271 271 var frameLabel = editor.lang.editorTitle.replace( '%1', editor.name ); 272 272 273 var contentDomReadyHandler; 273 274 editor.on( 'editingBlockReady', function() 274 275 { 275 276 var mainElement, … … 319 320 320 321 var doc = iframe.getFrameDocument().$; 321 322 322 doc.open(); 323 // Don't leave any history log in IE. (#5657) 324 doc.open( "text/html","replace" ); 323 325 doc.write( data ); 324 326 doc.close(); 325 327 }); … … 329 331 330 332 // The script that launches the bootstrap logic on 'domReady', so the document 331 333 // is fully editable even before the editing iframe is fully loaded (#4455). 332 varcontentDomReadyHandler = CKEDITOR.tools.addFunction( contentDomReady );334 contentDomReadyHandler = CKEDITOR.tools.addFunction( contentDomReady ); 333 335 var activationScript = 334 336 '<script id="cke_actscrpt" type="text/javascript" cke_temp="1">' + 335 337 ( isCustomDomain ? ( 'document.domain="' + document.domain + '";' ) : '' ) + … … 352 354 var script = domDocument.getElementById( "cke_actscrpt" ); 353 355 script.parentNode.removeChild( script ); 354 356 355 CKEDITOR.tools.removeFunction( contentDomReadyHandler );356 357 357 358 body.spellcheck = !editor.config.disableNativeSpellChecker; 358 359 … … 781 782 } ); 782 783 editor.on( 'destroy', function() 783 784 { 785 CKEDITOR.tools.removeFunction( contentDomReadyHandler ); 784 786 ieFocusGrabber.clearCustomData(); 785 787 } ); 786 788 }