Opened 12 years ago
Closed 9 years ago
#8294 closed Bug (fixed)
IE: Copied and Pasted content gets wrapped in <b>, <u>, <i> or <span> tags
Reported by: | Jakub Ś | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | Core : Pasting | Version: | 3.1 |
Keywords: | IE | Cc: | leungmwk@… |
Description
This ticket was reported by @Ken in our support channel (Topic:” Request for support: content incorrectly display”)
- Open any editor sample and switch to source
- Clear everything
- Paste in the following code:
Example 1:
<p> <i><u><b><span style="font-size: 16pt"><span style="font-family: arial">Simple testing sample for all features, </span></span></b></u></i></p> <p> <span style="font-size: 16pt"><span style="font-family: times new roman">font <span style="color: #ff0000">family, </span></span></span></p> <p> End .</p>
Example 2:
<p> <span style="font-size: 16pt"><span style="font-family: times new roman">font <span style="color: #ff0000">family, </span></span></span></p> <p> End .</p> <p> <i><u><b><span style="font-size: 16pt"><span style="font-family: arial">Simple testing sample for all features, </span></span></b></u></i></p>
- Switch back to WYSIWYG mode
- Press CRTL+A, CRTL+C, CRTL+V
Result: All insights of paragraphs get wrapped in i,u,b (Example 1) or span (Example 2) tags.
Issue has been reproducible in IE browsers from CKE 3.1.
Change History (5)
comment:1 Changed 12 years ago by
Status: | new → confirmed |
---|
comment:2 Changed 11 years ago by
Component: | General → Core : Pasting |
---|
comment:3 Changed 11 years ago by
comment:4 Changed 11 years ago by
The same root of the problem (pasting block into inline in IE) is applicable for other tickets: #8736, #9207. I think they all can be fixed with one patch.
comment:5 Changed 9 years ago by
Resolution: | → fixed |
---|---|
Status: | confirmed → closed |
Not reproducible since CKEditor 4.0. We implemented completely custom insert HTML method.
This is because all paragraphs are pasted in span. When you switch to source and back CKEditor tries to fix it but proper behaviour is that content should not be pasted into span but below it.