className = parentDiv.getParent().getAttribute( 'class' ),\r
langCode = parentDiv.getParent().getAttribute( 'lang' ),\r
doc = iframe.getFrameDocument();\r
- // Initialize the IFRAME document body.\r
- doc.$.open();\r
-\r
- // Support for custom document.domain in IE.\r
- if ( CKEDITOR.env.isCustomDomain() )\r
- doc.$.domain = document.domain;\r
\r
var onLoad = CKEDITOR.tools.addFunction( CKEDITOR.tools.bind( function( ev )\r
{\r
this.onLoad();\r
}, this ) );\r
\r
- doc.$.write(\r
+ var data =\r
'<!DOCTYPE html>' +\r
'<html dir="' + dir + '" class="' + className + '_container" lang="' + langCode + '">' +\r
'<head>' +\r
// after <body>, so it (body) becames immediatelly\r
// available. (#3031)\r
CKEDITOR.tools.buildStyleHtml( this.css ) +\r
- '<\/html>' );\r
- doc.$.close();\r
+ '<\/html>';\r
+\r
+ doc.write( data );\r
\r
var win = doc.getWindow();\r
\r
\r
holder = doc.getBody();\r
holder.unselectable();\r
+ CKEDITOR.env.air && CKEDITOR.tools.callFunction( onLoad );\r
}\r
else\r
holder = this.document.getById( this.id );\r