Ticket #4716: 4716_3.patch

File 4716_3.patch, 838 bytes (added by Garry Yao, 14 years ago)
  • _source/plugins/selection/plugin.js

     
    162162                                                                saveEnabled = false;
    163163                                                        });
    164164
     165                                                doc.getWindow().on( 'blur', function( evt )
     166                                                        {
     167                                                                // IE before version 8 will leave cursor blinking inside the document after
     168                                                                // editor blurred unless we clean up the selection. (#4716)
     169                                                                var env = CKEDITOR.env;
     170                                                                if ( env.ie && env.version < 8 )
     171                                                                        editor.document.$.selection.empty();
     172                                                        });
     173
    165174                                                // IE fires the "selectionchange" event when clicking
    166175                                                // inside a selection. We don't want to capture that.
    167176                                                body.on( 'mousedown', disableSave );
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy