/*\r
-Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.\r
+Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.\r
For licensing, see LICENSE.html or http://ckeditor.com/license\r
*/\r
\r
var container = this.getContentElement( 'general', 'editing_area' ).getElement(),\r
iframe = container.getElementsByTag( 'iframe' ).getItem( 0 ),\r
editor = this.getParentEditor(),\r
- html = iframe.$.contentWindow.document.body.innerHTML;\r
+ body = iframe.getFrameDocument().getBody(),\r
+ bogus = body.getBogus(),\r
+ html;\r
+ bogus && bogus.remove();\r
+ // Saving the contents in variable so changes until paste is complete will not take place (#7500)\r
+ html = body.getHtml();\r
\r
setTimeout( function(){\r
editor.fire( 'paste', { 'html' : html } );\r