Ticket #7316: 7316_2.patch

File 7316_2.patch, 1008 bytes (added by Garry Yao, 13 years ago)
  • _source/plugins/clipboard/plugin.js

     
    158158                }
    159159        };
    160160
     161        function cancel( evt ) { evt.cancel(); }
     162
    161163        // Allow to peek clipboard content by redirecting the
    162164        // pasting content into a temporary bin and grab the content of it.
    163165        function getClipboardData( evt, mode, callback )
     
    208210
    209211                var bms = sel.createBookmarks();
    210212
     213                this.on( 'selectionChange', cancel, null, null, 0 );
     214
    211215                // Turn off design mode temporarily before give focus to the paste bin.
    212216                if ( mode == 'text' )
    213217                {
     
    234238                {
    235239                        mode == 'text' && CKEDITOR.env.gecko && editor.focusGrabber.focus();
    236240                        pastebin.remove();
     241                        editor.removeListener( 'selectionChange', cancel );
    237242
    238243                        // Grab the HTML contents.
    239244                        // We need to look for a apple style wrapper on webkit it also adds
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy