Ticket #8016: 8016.patch

File 8016.patch, 645 bytes (added by Garry Yao, 13 years ago)
  • _source/plugins/preview/plugin.js

     
    8484
    8585                        if ( !isCustomDomain )
    8686                        {
    87                                 oWindow.document.open();
    88                                 oWindow.document.write( sHTML );
    89                                 oWindow.document.close();
     87                                var doc = oWindow.document;
     88                                doc.open();
     89                                doc.write( sHTML );
     90                                doc.close();
     91
     92                                // Chrome will need this to show the embedded. (#8016)
     93                                CKEDITOR.env.webkit && setTimeout( function() { doc.body.innerHTML += ''; }, 0 );
    9094                        }
    9195                }
    9296        };
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy