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 Piotrek Koszuliński)

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 Piotr Jasiun

Owner: set to Piotr Jasiun
Status: newassigned

comment:2 Changed 10 years ago by Piotr Jasiun

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:

a
{
	color: #0782C1;
}

and paste:

foo

we get in the pastebin:

<U><FONT color=#0782c1>foo </FONT></U>

If we change style to:

a
{
	text-decoration: none;
}

then we get:

<FONT color=#0066cc>foo </FONT>

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.

comment:3 Changed 10 years ago by Piotr Jasiun

Status: assignedreview

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 Piotrek Koszuliński

Status: reviewreview_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 Piotrek Koszuliński

Owner: Piotr Jasiun deleted
Status: review_failedconfirmed
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 Piotrek Koszuliński

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 Jakub Ś

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.

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy