Opened 10 years ago
Last modified 10 years ago
#12348 confirmed Bug
[IE8] Text pasted from textarea is underlined if content ends with a link
Reported by: | Piotr Jasiun | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | 3.0 |
Keywords: | Cc: |
Description (last modified by )
Moved from: #12341.
- open any sample
- set data to:
<p>foo <a href="foo">foo</a></p>
- copy text from some textarea
- paste it... it's underlined :D
- it happens only when pasting into the framed editor and it happens also when pasting using button in the toolbar (and allowing clipboard access)
Change History (7)
comment:1 Changed 10 years ago by
Owner: | set to Piotr Jasiun |
---|---|
Status: | new → assigned |
comment:2 Changed 10 years ago by
comment:3 Changed 10 years ago by
Status: | assigned → review |
---|
The solution might be to add and remove separator. I proposed it in t/12348, but this is ugly hack and I am not sure if we should fix issues like this.
comment:4 Changed 10 years ago by
Status: | review → review_failed |
---|
Nope, this will not do. At least not before we find out why and when it stopped working. You should always check it first in such case.
comment:5 Changed 10 years ago by
Owner: | Piotr Jasiun deleted |
---|---|
Status: | review_failed → confirmed |
Version: | → 3.0 |
I've just noticed your comment that it's an existing bug on master. In this case we can and should ignore it now.
I'm setting version to 3.0, but I checked past versions up to 3.6.
comment:6 Changed 10 years ago by
Description: | modified (diff) |
---|---|
Summary: | [IE8] Text pasted from textarea is underlined. → [IE8] Text pasted from textarea is underlined if content ends with a link |
comment:7 Changed 10 years ago by
You were right - issue can be reproduced from CKEditor 3.0.
What is more I was able to reproduce it in native contenteditable element in IE8-11.
This issue is tricky. When I paste the content from the textarea and the link is the last element of the document pasted content get a link style but as a HTML tags. So if we have in
contents.css
:and paste:
we get in the pastebin:
If we change style to:
then we get:
Where
#0066cc
is native IE link color. How cool is it? ;)We do not see the color because ACF filter out
font
tag.Also if we remove link from the end of the document everything is fine.
This happens only on IE8.