#9315 closed Bug (fixed)
Editor is removed when deleting all content and editor (div) is inside table
Reported by: | Mike Burgh | Owned by: | Garry Yao |
---|---|---|---|
Priority: | Normal | Milestone: | CKEditor 4.0 |
Component: | Core : Editable | Version: | 4.0 |
Keywords: | Cc: |
Description
If you select all content in the editor (keyboard or icon) and then press delete, the editor is removed from the page.
This only happens when enterMode is CKEDITOR.ENTER_BR
Tested against revision 3500 nightly build, and happens in Chrome, Firefox and IE.
To replicate:
- Visit: https://dl.dropbox.com/u/2510419/CKExample/index.html
- Click into text
- Select All (icon or keyboard)
- Press delete
Attachments (1)
Change History (13)
Changed 12 years ago by
Attachment: | __inlinetest.html added |
---|
comment:1 Changed 12 years ago by
Status: | new → confirmed |
---|
comment:3 Changed 12 years ago by
Happens with entermode ENTER_P too, if you select all in an empty editor
comment:4 Changed 12 years ago by
Summary: | Editor is removed when deleting all content and enterMode is CKEDITOR.ENTER_BR → Editor is removed when deleting all content and editor (div) is inside table |
---|
comment:5 Changed 12 years ago by
Milestone: | → CKEditor 4.0 |
---|
This's an important issue to be considered in v4.
comment:6 Changed 12 years ago by
Owner: | set to Garry Yao |
---|---|
Status: | confirmed → assigned |
Regression of [7243], affected list as well.
comment:7 Changed 12 years ago by
Status: | assigned → review |
---|
Besides of fix the bug, it looks like it's not appropriate to alter the behavior of getSelectedElement in general, and much safer to have #7645 just fixed by the keystroke handler.
comment:8 Changed 12 years ago by
This is very similar issue to inline editing #9482. Perhaps they have the same solution.
comment:10 Changed 12 years ago by
I pushed rebased branches. Note that dev branch wasn't based on master, so I had to remove one commit after rebase.
comment:11 Changed 12 years ago by
Resolution: | → fixed |
---|---|
Status: | review_passed → closed |
Confirmed. Press CRTL+A and press delete. Once the delete is pressed whole table gets removed from DOM.
Problem occurs with or without enter mode set to BR but the key to reproduce is having div is placed inside table.