JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.6.2
[ckeditor.git] / _source / plugins / preview / plugin.js
index a31ebfa..a835c19 100644 (file)
@@ -84,9 +84,13 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
 \r
                        if ( !isCustomDomain )\r
                        {\r
-                               oWindow.document.open();\r
-                               oWindow.document.write( sHTML );\r
-                               oWindow.document.close();\r
+                               var doc = oWindow.document;\r
+                               doc.open();\r
+                               doc.write( sHTML );\r
+                               doc.close();\r
+\r
+                               // Chrome will need this to show the embedded. (#8016)\r
+                               CKEDITOR.env.webkit && setTimeout( function() { doc.body.innerHTML += ''; }, 0 );\r
                        }\r
                }\r
        };\r