#12503 closed Bug (fixed)
[Blink/Webkit] Incorrect result of select all, backspace/delete
Reported by: | Piotrek Koszuliński | Owned by: | Artur Delura |
---|---|---|---|
Priority: | Normal | Milestone: | CKEditor 4.5.0 Beta |
Component: | General | Version: | |
Keywords: | Cc: | a.nowodzinski@… |
Description (last modified by )
- Open replacebycode sample.
- CTRL+A.
- Delete/backspace.
- Execute following code in console.
CKEDITOR.instances.editor1.editable().getHtml();
Result:
<h1><small><a data-cke-saved-href="http://en.wikipedia.org/wiki/Apollo_11" href="http://en.wikipedia.org/wiki/Apollo_11"></a></small>{}</h1>
Expected (as on FF):
<p>[]<br></p>
or (if that's going to be much easier to implement):
<h1>[]<br></h1>
(because <h1>
was the first block before pressing backspace)
Related
Change History (7)
comment:1 Changed 10 years ago by
Description: | modified (diff) |
---|---|
Milestone: | → CKEditor 4.5.0 |
Status: | new → confirmed |
comment:2 Changed 10 years ago by
Description: | modified (diff) |
---|
comment:3 Changed 10 years ago by
Owner: | set to Artur Delura |
---|---|
Status: | confirmed → assigned |
comment:4 Changed 10 years ago by
comment:5 Changed 10 years ago by
Status: | assigned → review |
---|
Small element has been moved to header by this code. Changes and tests in branch:t/12503.
comment:6 Changed 10 years ago by
Resolution: | → fixed |
---|---|
Status: | review → closed |
On Firefox I get <br>
instead of <p><br></p>
randomly in manual test, but I met the same behavior on major branch. It occurred randomly and I am not able to reproduce it on console (apparently bluring editor fix issue). Also I was not able to reproduce it with open Firefox DOM inspector, so there is nothing to report.
Closed with git:e9db567.
What I see here is that after pressing
delete/backspace
editor move whole content from last editable child to first one and empty text content. Based on that I simpified use case:Having:
I above situation first child is
<h1>
, last one is<p>
. After pressingdelete/backspace
Whole content from<p>
has been moved to<h1>
. As result we got this: