Ticket #7500: 7500.patch

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

     
    165165                                iframe = container.getElementsByTag( 'iframe' ).getItem( 0 ),
    166166                                editor = this.getParentEditor(),
    167167                                body = iframe.getFrameDocument().getBody(),
    168                                 bogus = body.getBogus();
     168                                bogus = body.getBogus(),
     169                                html;
    169170                        bogus && bogus.remove();
     171                        // Saving the contents in variable so changes until paste is complete will not take place (#7500)
     172                        html = body.getHtml();
    170173
    171174                        setTimeout( function(){
    172                                 editor.fire( 'paste', { 'html' : body.getHtml() } );
     175                                editor.fire( 'paste', { 'html' : html } );
    173176                        }, 0 );
    174177
    175178                },
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy