Ticket #9042: 9042.patch

File 9042.patch, 1.2 KB (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
     
    228228
    229229                        editor.removeListener( 'selectionChange', cancel );
    230230
     231                        // IE7: selection must go before removing paste bin. (#8691)
     232                        if ( CKEDITOR.env.ie7Compat )
     233                        {
     234                                sel.selectBookmarks( bms );
     235                                pastebin.remove();
     236                        }
     237                        // Webkit: selection must go after removing paste bin. (#8921)
     238                        else
     239                        {
     240                                pastebin.remove();
     241                                sel.selectBookmarks( bms );
     242                        }
     243
    231244                        // Grab the HTML contents.
    232245                        // We need to look for a apple style wrapper on webkit it also adds
    233246                        // a div wrapper if you copy/paste the body of the editor.
     
    238251                                                 && ( bogusSpan.is && bogusSpan.hasClass( 'Apple-style-span' ) ) ?
    239252                                                        bogusSpan : pastebin );
    240253
    241                         // IE7: selection must go before removing paste. (#8691)
    242                         sel.selectBookmarks( bms );
    243                         pastebin.remove();
    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