Ticket #3106 (confirmed Bug)
[IE]editor.getSelection not right empty document
| Reported by: | garry.yao | Owned by: | |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | General | Version: | 3.0 Beta 2 |
| Keywords: | IE | Cc: |
Description
When initial a document with focus but no content, the CKEDITOR.editor::getSelection returns 'null', which disable and subsequent range requests, this bug is due to a IE bug which reporting selection which not belonged to parent document.
Attachments
Change History
Changed 4 years ago by garry.yao
- Attachment test-getSelection.patch added
comment:1 Changed 4 years ago by garry.yao
The lower level method CKEDITOR.dom.document.getSelection is working in this sense.
comment:2 Changed 4 years ago by fredck
- Keywords Confirmed added
- Milestone changed from CKEditor 3.0 to CKEditor 3.x
It fails only with a clean cache. If you them reload the test page (F5), it passes.
The workaround for it is delaying the execution of getSelection, by placing it inside a setTimeout( function(){ ... }, 0 ) call.
Note: See
TracTickets for help on using
tickets.

Functional Test Case