Opened 12 years ago
Last modified 8 years ago
#9998 confirmed Bug
In Chrome SPAN tags appear when merging paragraphs with delete/backspace. — at Version 8
Reported by: | lmeurs | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | |
Keywords: | Blink Webkit | Cc: | laura@…, ben@…, matti.jarvinen@…, ivanjh@…, joel.peltonen@… |
Description (last modified by )
Occurs in Chrome v24.0.1312.56 / CKEditor 4.0.1 (revision d02739b) / CKEditor 4 DEV (Standard) (revision d02739b) (nightly build demo)
Did not occur in Firefox v17.0.1
When you have a paragraph with several lines of text, ie.:
<p>line1<br /> line2</p>
and want to create 2 separate paragraphs, you could go with your cursor to the end of line1, press ENTER to create a new paragraph and press DELETE to remove the whiteline caused by the BR tag. Then CKEditor puts some HTML in a SPAN tag with a line-height styling.
<p>line1</p> <p><span style="line-height: 1.6em;">line2</span></p>
Other examples: It also happens when trying to create a single line out of the next cases:
<p><br /> line2</p>
and
<p>line1</p> <p>line2</p>
EDIT:
- This happens when two paragraphs are joined with delete. Tag br has nothing to do here.
Content:
<h1>^test</h1>
+ enter + backspace creates awful mess.
Change History (8)
comment:1 Changed 12 years ago by
Keywords: | Chrome added; chrome removed |
---|---|
Status: | new → confirmed |
Version: | 4.0.1 → 4.0 |
comment:2 Changed 12 years ago by
Description: | modified (diff) |
---|---|
Summary: | In Chrome SPAN tags appear when removing BR tags → In Chrome SPAN tags appear when merging paragraphs with delete. |
comment:3 Changed 12 years ago by
Summary: | In Chrome SPAN tags appear when merging paragraphs with delete. → In Chrome SPAN tags appear when merging paragraphs with delete/backspace. |
---|
#10056 was marked as duplicate.
comment:4 Changed 12 years ago by
Cc: | laura@… added |
---|
comment:7 Changed 12 years ago by
Description: | modified (diff) |
---|
comment:8 Changed 12 years ago by
Description: | modified (diff) |
---|---|
Priority: | Normal → High |
I started to feel that we can't rely on Webkit's backspace behaviour any more. Those styling spans are unacceptable thus I'm changing priority to high.
Problem can be reproduced from CKEditor 4.0 in Chrome only.