X-Git-Url: https://jasonwoof.com/gitweb/?p=ckeditor.git;a=blobdiff_plain;f=_source%2Fplugins%2Fclipboard%2Fdialogs%2Fpaste.js;h=e0813ec9b84628c67f3d5529bb2983a459112faa;hp=93edc0d8fabbed6292172a5ee4dee5d3335e209e;hb=4e90e78dc97789709ee7404359a5517540c27553;hpb=8f6c203fdaa543c3bca40baea6ae4ddcdf1a77f5 diff --git a/_source/plugins/clipboard/dialogs/paste.js b/_source/plugins/clipboard/dialogs/paste.js index 93edc0d..e0813ec 100644 --- a/_source/plugins/clipboard/dialogs/paste.js +++ b/_source/plugins/clipboard/dialogs/paste.js @@ -164,7 +164,12 @@ CKEDITOR.dialog.add( 'paste', function( editor ) var container = this.getContentElement( 'general', 'editing_area' ).getElement(), iframe = container.getElementsByTag( 'iframe' ).getItem( 0 ), editor = this.getParentEditor(), - html = iframe.$.contentWindow.document.body.innerHTML; + body = iframe.getFrameDocument().getBody(), + bogus = body.getBogus(), + html; + bogus && bogus.remove(); + // Saving the contents in variable so changes until paste is complete will not take place (#7500) + html = body.getHtml(); setTimeout( function(){ editor.fire( 'paste', { 'html' : html } );