Ticket #8157: 8157.patch
File 8157.patch, 1.4 KB (added by , 12 years ago) |
---|
-
_source/plugins/selection/plugin.js
311 311 restoreEnabled = 1; 312 312 }); 313 313 314 // IE before version 8 will leave cursor blinking inside the document after 315 // editor blurred unless we clean up the selection. (#4716) 316 if ( CKEDITOR.env.ie && CKEDITOR.env.version < 8 ) 314 if ( CKEDITOR.env.ie ) 317 315 { 318 editor.on( 'blur', function( evt)316 editor.on( 'blur', function() 319 317 { 320 318 // Try/Catch to avoid errors if the editor is hidden. (#6375) 321 319 try 322 320 { 323 editor.document && editor.document.$.selection.empty(); 321 // Avoid leaving the nasty control type selection after editor loose focus as it may 322 // overlay other element. (#8157) 323 var native = editor.document.$.selection; 324 debugger; 325 native.type == 'Control' && native.empty(); 326 327 // IE before version 8 will leave cursor blinking inside the document after 328 // editor blurred unless we clean up the selection. (#4716) 329 if ( CKEDITOR.env.version < 8 ) 330 editor.document && editor.document.$.selection.empty(); 324 331 } 325 332 catch (e) {} 326 333 });