Opened 11 years ago
Last modified 11 years ago
#11270 confirmed Bug
Delete pressed in table cell causes an error when magicline is visible
Reported by: | Piotrek Koszuliński | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | |
Keywords: | Cc: |
Description (last modified by )
Use this HTML:
<table border="1" cellpadding="1" cellspacing="1" style="width:500px"> <tbody> <tr> <td> <p> </p> </td> <td> </td> </tr> </tbody> </table>
- Place caret in first table cell.
- Move your mouse cursor to a place which will trigger magicline.
- Press delete.
- Error is thrown.
Uncaught TypeError: Cannot read property 'type' of null range.js:1526 CKEDITOR.dom.range.setStart range.js:1526 CKEDITOR.dom.range.setStartAfter range.js:1573 CKEDITOR.dom.range.setStartAt range.js:1618 CKEDITOR.dom.range.moveToPosition range.js:1489 CKEDITOR.dom.range.moveToElementEditablePosition range.js:2047 CKEDITOR.dom.range.moveToElementEditEnd range.js:2157 (anonymous function)
Reproduced it on every browser.
Attachments (1)
Change History (11)
comment:1 Changed 11 years ago by
Description: | modified (diff) |
---|
comment:2 Changed 11 years ago by
Status: | new → pending |
---|
Changed 11 years ago by
Attachment: | delete-in-table.webm added |
---|
comment:3 Changed 11 years ago by
Without any additional effort I reproduced in on Chrome. Just copy this HTML to source, switch to wysiwyg, place caret in first cell, press delete and boom.
comment:4 Changed 11 years ago by
Hmm... I can't reproduce this on Chrome on Mac. We need to check it on more machines.
comment:5 Changed 11 years ago by
Status: | pending → confirmed |
---|
I confirm it in FF, Chrome, Chromium@Win7.
FF thorws:
TypeError: startNode is null
comment:6 Changed 11 years ago by
I'm not able to reproduce it. Tried Chrome on Mac and Win and IE9.
comment:7 Changed 11 years ago by
Since Marek reproduced it too, I'll give it a try to see what it may be. I may understand then why only some of us can reproduce it.
comment:8 follow-up: 10 Changed 11 years ago by
Description: | modified (diff) |
---|
OK, I figured this out. You need to have magicline visible while pressing backspace :D.
comment:9 Changed 11 years ago by
Summary: | Delete pressed in table cell causes an error → Delete pressed in table cell causes an error when magicline is visible |
---|
I was trying to reproduce this for fair amount of time and nothing happened in CKEditor 4.4. Could you: