Index: _source/plugins/wysiwygarea/plugin.js =================================================================== --- _source/plugins/wysiwygarea/plugin.js (revision 3816) +++ _source/plugins/wysiwygarea/plugin.js Wed Jul 08 00:27:40 CST 2009 @@ -228,14 +228,21 @@ fieldset.remove(); // The document domain must be set within the src - // attribute. - var src = 'void( (function(){' + + // attribute; + // Defer the script execution until iframe + // has been added to main window, this is needed for some + // browsers which will begin to load the frame content + // prior to it's presentation in DOM.(#3894) + var src = 'void( ' + + ( CKEDITOR.env.gecko ? 'setTimeout' : '' ) + '( function(){' + 'document.open();' + ( CKEDITOR.env.ie && isCustomDomain ? 'document.domain="' + document.domain + '";' : '' ) + 'document.write( window.parent._cke_htmlToLoad_' + editor.name + ' );' + 'document.close();' + 'window.parent._cke_htmlToLoad_' + editor.name + ' = null;' + - '})() )'; + '}' + + ( CKEDITOR.env.gecko ? ', 0 )' : ')()' ) + + ' )'; // Loading via src attribute does not work in Opera. if ( CKEDITOR.env.opera ) Index: CHANGES.html =================================================================== --- CHANGES.html (revision 3826) +++ CHANGES.html Wed Jul 08 00:13:10 CST 2009 @@ -103,6 +103,7 @@