Ticket #7160: 7160_2.patch

File 7160_2.patch, 1.5 KB (added by Garry Yao, 13 years ago)
  • _source/plugins/clipboard/plugin.js

     
    2828                // the command to execute.
    2929                body.on( command, onExec );
    3030
    31                 // IE6/7: document.execCommand has problem to paste into positioned element.
    32                 ( CKEDITOR.env.version > 7 ? doc.$ : doc.$.selection.createRange() ) [ 'execCommand' ]( command );
     31                doc.$.execCommand( command );
    3332
    3433                body.removeListener( command, onExec );
    3534
  • _source/plugins/selection/plugin.js

     
    250250                                                // events get executed.
    251251                                                body.on( 'focusin', function( evt )
    252252                                                        {
    253                                                                 // If there are elements with layout they fire this event but
    254                                                                 // it must be ignored to allow edit its contents #4682
    255                                                                 if ( evt.data.$.srcElement.nodeName != 'BODY' )
     253                                                                // 1. If there are elements with layout they fire this event but
     254                                                                // it must be ignored to allow edit its contents; (#4682)
     255                                                                // 2. clipboard authentication query dialog is to be opened,
     256                                                                // but document selection will not loose. (#7160)
     257                                                                if ( evt.data.$.srcElement.nodeName != 'BODY'
     258                                                                                || editor.document.$.selection.type != 'None' )
    256259                                                                        return;
    257260
    258261                                                                // If we have saved a range, restore it at this
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy