Ticket #8843: 8843.patch

File 8843.patch, 941 bytes (added by Garry Yao, 12 years ago)
  • _source/plugins/selection/plugin.js

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    345345                                                // up the selection before blur.
    346346                                                CKEDITOR.env.ie && doc.getWindow().on( 'blur', function()
    347347                                                {
    348                                                         // Error proof when the editor is not visible. (#6375)
    349                                                         try{ doc.$.selection.empty(); } catch ( er){}
     348                                                        // Make sure it's not happening for internal controls. (#8843)
     349                                                        var active = CKEDITOR.dom.element.get( doc.$.activeElement );
     350                                                        if ( active.is( 'body' ) )
     351                                                        {
     352                                                                // Error proof when the editor is not visible. (#6375)
     353                                                                try{ doc.$.selection.empty(); } catch ( er){}
     354                                                        }
    350355                                                });
    351356
    352357                                                // Listening on document element ensures that
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy