Ticket #8630: 8630_2.patch
File 8630_2.patch, 877 bytes (added by , 12 years ago) |
---|
-
_source/plugins/htmldataprocessor/plugin.js
516 516 // Call the browser to help us fixing a possibly invalid HTML 517 517 // structure. 518 518 var div = new CKEDITOR.dom.element( 'div' ); 519 520 // Prevent execution of event handlers in the div (#8630) 521 data = data.replace( /\bon/g, ' data-ckeoff' ); 522 519 523 // Add fake character to workaround IE comments bug. (#3801) 520 524 div.setHtml( 'a' + data ); 521 525 data = div.getHtml().substr( 1 ); 522 526 527 // Restore event handlers (#8630) 528 data = data.replace( / data-ckeoff/g, ' on' ); 529 523 530 // Unprotect "some" of the protected elements at this point. 524 531 data = unprotectElementNames( data ); 525 532