Ticket #8157: 8157.patch

File 8157.patch, 1.4 KB (added by Garry Yao, 12 years ago)
  • _source/plugins/selection/plugin.js

     
    311311                                                                restoreEnabled = 1;
    312312                                                        });
    313313
    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 )
    317315                                                {
    318                                                         editor.on( 'blur', function( evt )
     316                                                        editor.on( 'blur', function()
    319317                                                        {
    320318                                                                // Try/Catch to avoid errors if the editor is hidden. (#6375)
    321319                                                                try
    322320                                                                {
    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();
    324331                                                                }
    325332                                                                catch (e) {}
    326333                                                        });
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy