Opened 12 years ago

Last modified 9 years ago

#9931 confirmed Bug

Copy/paste of hyperlinks with IE creates font tags

Reported by: Tristan Owned by:
Priority: Normal Milestone:
Component: Core : Pasting Version: 3.1
Keywords: IE Cc:

Description

Hi,

There appears to be a bug affecting IE8 in CKEditor where copying and pasting (via CTRL+C, CTRL+V) changes the HTML and wraps the hyperlink text in font tags. I have been able to reproduce it 100% on http://ckeditor.com/demo. I was able to reproduce with IE8 versions in both WinXP 32-bit and Win7 32-bit.

Before copy HTML:

<a href="http://en.wikipedia.org/wiki/Neil_Armstrong" title="Neil Armstrong">Neil Armstrong</a>

After paste HTML:

<a href="http://en.wikipedia.org/wiki/Neil_Armstrong" title="Neil Armstrong"><font color="#0000ff">Neil Armstrong</font></a>

It seems to affect IE8 only. I've tried to reproduce in IE9, Firefox and Chrome and there was no issue with those browsers.

Change History (5)

comment:1 Changed 12 years ago by Jakub Ś

Keywords: ie ie8 copy paste font tag removed
Status: newpending

Your issue look very similar to #6372 however I was not able to reproduce it.

Please provide exact steps or screen cast of the problem as simple copy paste seems to work without problems.

comment:2 Changed 12 years ago by Tristan

Thanks for the prompt response!

I'm at home now and I cannot reproduce it either when using IE8 on Win7 64-bit. I'll have to see what's different about the IE configurations at work.

comment:3 Changed 12 years ago by Tristan

I was able to reproduce it on my home configuration by partially copying a link and then pasting.

See http://www.youtube.com/watch?v=R6ehmWxvNNc

Let me know if you can reproduce it via this method.

comment:4 Changed 12 years ago by Jakub Ś

Keywords: IE added
Status: pendingconfirmed
Summary: Copy/paste of hyperlinks with IE8 creates font tagsCopy/paste of hyperlinks with IE creates font tags
Version: 4.0.13.1

Problem can be reproduced in all versions of IE from CKEditor 3.1.

There are two way to reproduce this:

  • using ctrl+c/ctrl+v (later reffered as keys)
  • using IE native copy/paste from menu or toolbar (later reffered as buttons). Of course clipboard access is required here.

Results:

  • IE7 - Using keys you can only reproduce it by copy/paste part of link e.g. Amstong from Neil_Amstong. Using buttons and selecting part of link will result in plain text being pasted. Copy/Paste with key or buttons on whole link works as expected.
  • IE8 - Using keys and buttons you can only reproduce it by copy/paste part of link e.g. Amstong from Neil_Amstong.
  • IE9 - Using keys and buttons you can reproduce it by copy/paste whole or part of link
  • IE10 - Using keys and buttons you can only reproduce it by copy/paste part of link e.g. Amstong from Neil_Amstong.
  • IE11 - Using keys and buttons you can reproduce it by copy/paste part or whole

IE8 got the same result as IE10

Last edited 9 years ago by Jakub Ś (previous) (diff)

comment:5 Changed 9 years ago by Jakub Ś

Starting from CKEditor 4.1 problem can be reproduced when ACF is disabled.

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