Ticket #5559: 5559.patch
File 5559.patch, 1.5 KB (added by , 14 years ago) |
---|
-
_source/plugins/wysiwygarea/plugin.js
304 304 // call document.open(). 305 305 ( isCustomDomain ? ( 'document.domain="' + document.domain + '";' ) : '' ) + 306 306 307 ( ( 'parent.CKEDITOR.tools.callFunction(' + setDataFn + ',document);' ) ) +308 309 307 'document.close();'; 310 308 311 309 iframe = CKEDITOR.dom.element.createFromHtml( '<iframe' + 312 310 ' style="width:100%;height:100%"' + 313 311 ' frameBorder="0"' + 314 312 ' title="' + frameLabel + '"' + 315 // With FF, the 'src' attribute should be left empty to 313 // With IE, the custom domain has to be taken care at first, 314 // for other browers, the 'src' attribute should be left empty to 316 315 // trigger iframe's 'load' event. 317 ' src="' + ( CKEDITOR.env. gecko ? '' : 'javascript:void(function(){' + encodeURIComponent( srcScript ) + '}())' ) + '"' +316 ' src="' + ( CKEDITOR.env.ie ? 'javascript:void(function(){' + encodeURIComponent( srcScript ) + '}())' : '' ) + '"' + 318 317 ' tabIndex="' + editor.tabIndex + '"' + 319 318 ' allowTransparency="true"' + 320 319 '></iframe>' ); 321 320 322 321 // With FF, it's better to load the data on iframe.load. (#3894,#4058) 323 CKEDITOR.env.gecko &&iframe.on( 'load', function( ev )322 iframe.on( 'load', function( ev ) 324 323 { 325 324 ev.removeListener(); 326 325