Ticket #8921: 8921.patch

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

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    238238                                                 && ( bogusSpan.is && bogusSpan.hasClass( 'Apple-style-span' ) ) ?
    239239                                                        bogusSpan : pastebin );
    240240
    241                         // IE7: selection must go before removing paste. (#8691)
    242                         sel.selectBookmarks( bms );
    243                         pastebin.remove();
     241                        // IE7: selection must go before removing paste bin. (#8691)
     242                        if ( CKEDITOR.env.ie7Compat )
     243                        {
     244                                sel.selectBookmarks( bms );
     245                                pastebin.remove();
     246                        }
     247                        // Webkit: selection must go after removing paste bin. (#8921)
     248                        else
     249                        {
     250                                pastebin.remove();
     251                                sel.selectBookmarks( bms );
     252                        }
     253
    244254                        callback( pastebin[ 'get' + ( mode == 'text' ? 'Value' : 'Html' ) ]() );
    245255                }, 0 );
    246256        }
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy