Skip to content

Copy and paste text link add tags in IE11 #908

Closed
@fortunatomaldonado

Description

@fortunatomaldonado

Issue

When copying and pasting a link in IE11, the pasted link contains additional tags <u><font>.
https://issues.liferay.com/browse/LPS-87062

Reproduce

I was able to reproduce this behavior in Web Contents of Liferay and in the Document Editor in CKEditor4 using IE11. I cannot test the alloyeditor demo while using IE11.

  1. Add some text. "test"
  2. Make test into a link with any address. "google.com"
  3. Copy the text and paste it below the original text.
  4. Look at the HTML of both the texts.

Result
The pasted text will contain tags with a different color.

Original: <p><a href="https://google.com" target="_blank">link</a></p>
Pasted: <p><a href="https://google.com" target="_blank"><u><font color="#0066cc">link</font></u></a></p>

Let me know if there are any questions or comments.
Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions