Ticket #7160: 7160_2.patch
File 7160_2.patch, 1.5 KB (added by , 13 years ago) |
---|
-
_source/plugins/clipboard/plugin.js
28 28 // the command to execute. 29 29 body.on( command, onExec ); 30 30 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 ); 33 32 34 33 body.removeListener( command, onExec ); 35 34 -
_source/plugins/selection/plugin.js
250 250 // events get executed. 251 251 body.on( 'focusin', function( evt ) 252 252 { 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' ) 256 259 return; 257 260 258 261 // If we have saved a range, restore it at this