Opened 3 months ago

#17023 new Bug

CKEditor throw exception when trying to delete bullet

Reported by: Roy Owned by:
Priority: Normal Milestone:
Component: General Version: 4.6.0
Keywords: Cc:

Description

Steps to reproduce

  1. Copy and paste the text from the attach file to ckeditor (i try it on the CKEditor home page).
  2. try to select empty bullet number 2.
  3. press backspace two times.

Expected: we can select bullet 2. and it will be deleted.

Actual: we cannot select bullet 2. bullet 2. is not deleted instead we get the following exception

Exception: ncaught TypeError: Cannot read property 'type' of null

at window.CKEDITOR.window.CKEDITOR.dom.CKEDITOR.dom.range.moveToElementEditablePosition (ckeditor.js:170) at window.CKEDITOR.window.CKEDITOR.dom.CKEDITOR.dom.range.moveToElementEditEnd (ckeditor.js:174) at a.<anonymous> (ckeditor.js:1049) at a.d (ckeditor.js:11) at a.window.CKEDITOR.window.CKEDITOR.dom.CKEDITOR.event.CKEDITOR.event.fire (ckeditor.js:13) at a.window.CKEDITOR.window.CKEDITOR.dom.CKEDITOR.editor.CKEDITOR.editor.fire (ckeditor.js:14) at window.CKEDITOR.window.CKEDITOR.dom.CKEDITOR.keystrokeHandler.f (ckeditor.js:229) at $.d (ckeditor.js:11) at $.window.CKEDITOR.window.CKEDITOR.dom.CKEDITOR.event.CKEDITOR.event.fire (ckeditor.js:13) at HTMLBodyElement.<anonymous> (ckeditor.js:58)

11:01:57.158 ckeditor.js:170 Uncaught TypeError: Cannot read property 'type' of null

at window.CKEDITOR.window.CKEDITOR.dom.CKEDITOR.dom.range.moveToElementEditablePosition (ckeditor.js:170) at window.CKEDITOR.window.CKEDITOR.dom.CKEDITOR.dom.range.moveToElementEditEnd (ckeditor.js:174) at a.<anonymous> (ckeditor.js:1049) at a.d (ckeditor.js:11) at a.window.CKEDITOR.window.CKEDITOR.dom.CKEDITOR.event.CKEDITOR.event.fire (ckeditor.js:13) at a.window.CKEDITOR.window.CKEDITOR.dom.CKEDITOR.editor.CKEDITOR.editor.fire (ckeditor.js:14) at window.CKEDITOR.window.CKEDITOR.dom.CKEDITOR.keystrokeHandler.f (ckeditor.js:229) at $.d (ckeditor.js:11) at $.window.CKEDITOR.window.CKEDITOR.dom.CKEDITOR.event.CKEDITOR.event.fire (ckeditor.js:13) at HTMLBodyElement.<anonymous> (ckeditor.js:58)

I reproduce this defect in the demo CKEditor in http://ckeditor.com/

Attachments (1)

example-text.html (447 bytes) - added by Roy 3 months ago.

Download all attachments as: .zip

Change History (1)

Changed 3 months ago by Roy

Attachment: example-text.html added
Note: See TracTickets for help on using tickets.
© 2003 – 2017 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy