Ticket #7368: 7368.patch

File 7368.patch, 799 bytes (added by Sa'ar Zac Elias, 13 years ago)
  • _source/plugins/clipboard/dialogs/paste.js

     
    164164                        var container = this.getContentElement( 'general', 'editing_area' ).getElement(),
    165165                                iframe = container.getElementsByTag( 'iframe' ).getItem( 0 ),
    166166                                editor = this.getParentEditor(),
    167                                 html = iframe.$.contentWindow.document.body.innerHTML;
     167                                body = iframe.getFrameDocument().getBody(),
     168                                bogus = body.getBogus();
     169                        bogus && bogus.remove();
    168170
    169171                        setTimeout( function(){
    170                                 editor.fire( 'paste', { 'html' : html } );
     172                                editor.fire( 'paste', { 'html' : body.getHtml() } );
    171173                        }, 0 );
    172174
    173175                },
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy