Opened 7 years 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
- Copy and paste the text from the attach file to ckeditor (i try it on the CKEditor home page).
- try to select empty bullet number 2.
- 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/