Opened 15 years ago

Last modified 14 years ago

#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:


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 (1)

test-getSelection.patch (2.3 KB) - added by Garry Yao 15 years ago.
Functional Test Case

Download all attachments as: .zip

Change History (5)

Changed 15 years ago by Garry Yao

Attachment: test-getSelection.patch added

Functional Test Case

comment:1 Changed 15 years ago by Garry Yao

The lower level method CKEDITOR.dom.document.getSelection is working in this sense.

comment:2 Changed 15 years ago by Frederico Caldeira Knabben

Keywords: Confirmed added
Milestone: CKEditor 3.0CKEditor 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.

comment:3 Changed 15 years ago by Alfonso Martínez de Lizarrondo

Version: SVN (FCKeditor)CKEditor 3.0 Beta 2

comment:4 Changed 14 years ago by Frederico Caldeira Knabben

Milestone: CKEditor 3.x

Milestone CKEditor 3.x deleted

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy