Ticket #7561: 7561.patch

File 7561.patch, 829 bytes (added by Garry Yao, 13 years ago)
  • _source/plugins/selection/plugin.js

     
    567567                        cache : {}
    568568                };
    569569
    570                 /**
    571                  * IE BUG: The selection's document may be a different document than the
    572                  * editor document. Return null if that is the case.
    573                  */
     570                // IE selection relies on editing host focus.
    574571                if ( CKEDITOR.env.ie )
    575572                {
    576573                        var range = this.getNative().createRange();
     
    578575                                || ( range.item && range.item(0).ownerDocument != this.document.$ )
    579576                                || ( range.parentElement && range.parentElement().ownerDocument != this.document.$ ) )
    580577                        {
    581                                 this.isInvalid = true;
     578                                document.getWindow().focus();
    582579                        }
    583580                }
    584581
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy