Ticket #8691: 8691_2.patch

File 8691_2.patch, 802 bytes (added by Garry Yao, 12 years ago)
  • _source/plugins/clipboard/plugin.js

     
    231231                        if ( mode == 'text' && CKEDITOR.env.gecko )
    232232                                editor.document.getBody().focus();
    233233
    234                         pastebin.remove();
    235234                        editor.removeListener( 'selectionChange', cancel );
    236235
    237236                        // Grab the HTML contents.
     
    244243                                                 && ( bogusSpan.is && bogusSpan.hasClass( 'Apple-style-span' ) ) ?
    245244                                                        bogusSpan : pastebin );
    246245
     246                        // IE7: selection must go before removing paste. (#8691)
    247247                        sel.selectBookmarks( bms );
     248                        pastebin.remove();
    248249                        callback( pastebin[ 'get' + ( mode == 'text' ? 'Value' : 'Html' ) ]() );
    249250                }, 0 );
    250251        }
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy