Ticket #4709: 4709.patch
File 4709.patch, 1.4 KB (added by , 15 years ago) |
---|
-
_source/plugins/selection/plugin.js
92 92 { 93 93 editor.on( 'contentDom', function() 94 94 { 95 var doc = editor.document; 95 var doc = editor.document, 96 body = doc.getBody(); 96 97 97 98 if ( CKEDITOR.env.ie ) 98 99 { … … 107 108 // "onfocusin" is fired before "onfocus". It makes it 108 109 // possible to restore the selection before click 109 110 // events get executed. 110 doc.on( 'focusin', function()111 body.on( 'focusin', function() 111 112 { 112 113 // If we have saved a range, restore it at this 113 114 // point. … … 150 151 151 152 // IE fires the "selectionchange" event when clicking 152 153 // inside a selection. We don't want to capture that. 153 doc.on( 'mousedown', disableSave );154 doc.on( 'mouseup',154 body.on( 'mousedown', disableSave ); 155 body.on( 'mouseup', 155 156 function( evt ) 156 157 { 157 158 // IE context-menu event in table cells collapse … … 170 171 0 ); 171 172 }); 172 173 173 doc.on( 'keydown', disableSave );174 doc.on( 'keyup',174 body.on( 'keydown', disableSave ); 175 body.on( 'keyup', 175 176 function() 176 177 { 177 178 saveEnabled = true;