X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fplugins%2Fpreview%2Fplugin.js;h=a835c194f2a4554ab43134c6a98276080fc64ca2;hb=e73319a12b56100b29ef456fd74114fe5519e01c;hp=12a1683e5341c33a2c3550aebfc9c77921a28d57;hpb=48b1db88210b4160dce439c6e3e32e14af8c106b;p=ckeditor.git diff --git a/_source/plugins/preview/plugin.js b/_source/plugins/preview/plugin.js index 12a1683..a835c19 100644 --- a/_source/plugins/preview/plugin.js +++ b/_source/plugins/preview/plugin.js @@ -13,6 +13,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license { modes : { wysiwyg:1, source:1 }, canUndo : false, + readOnly : 1, exec : function( editor ) { var sHTML, @@ -83,9 +84,13 @@ For licensing, see LICENSE.html or http://ckeditor.com/license if ( !isCustomDomain ) { - oWindow.document.open(); - oWindow.document.write( sHTML ); - oWindow.document.close(); + var doc = oWindow.document; + doc.open(); + doc.write( sHTML ); + doc.close(); + + // Chrome will need this to show the embedded. (#8016) + CKEDITOR.env.webkit && setTimeout( function() { doc.body.innerHTML += ''; }, 0 ); } } };