Opened 14 years ago

Closed 11 years ago

#6372 closed Bug (duplicate)

[IE] changes span tags to font tags and font size on copying/pasting

Reported by: Karen Ananiev Owned by:
Priority: Normal Milestone:
Component: General Version: 3.0
Keywords: IE Cc:

Description

  • Select a few words and change font size (24, for example)
  • Select one of the words and copy it
  • Paste to another place.


Note that visual font size have been changed. In source you'll find <font size="5"> instead of <span style="font-size: 24px">. The same problem on drag-and-drop operations.

Change History (7)

comment:1 Changed 14 years ago by Krzysztof Studnik

Status: newpending

I checked under IE8, on all stable versions of CKEditor, and I cannot reproduce. Could You add info about used version of CKEditor and IE version?

comment:2 Changed 14 years ago by Karen Ananiev

CKEditor 3.4.1; IE8

  • Open http://ckeditor.com/demo
  • Select "The version most widely known" in the second paragraph
  • Set font size 24
  • Select only "version" word and copy it
  • Move cursor to the end of the first paragraph and paste copied word


Switch to the source mode - you will see <font size="5">version </font>. Also if you pasted using toolbar button - you'll get - <font size="5">version&nbsp;<span style="display: none">&nbsp;</span></font>

comment:3 Changed 13 years ago by Jakub Ś

Keywords: IE added
Status: pendingconfirmed
Version: 3.0
  1. Open replacebycode sample.
  2. Select whole sample text and press 'Remove Format' button
  3. Select "is some sample text" and change size to 24
  4. Select word "some" and press CRTL+C
  5. Go to the end of sample text (behind the dot) and press CRTL+V

The result is presented below:

<p>
	This <span style="font-size: 24px">is some sample text.</span> You are using <a href="http://ckeditor.com/">CKEditor</a>.<font size="5">some</font></p>

This issue has been reproducible in all versions of IE from CKEditor 3.0

comment:4 Changed 12 years ago by Jakub Ś

#9183 was marked as duplicate.

comment:5 Changed 12 years ago by Jakub Ś

Summary: [IE] changes font size on copying/pasting[IE] changes span tags to font tags and font size on copying/pasting

comment:6 Changed 12 years ago by Jakub Ś

Additionally in IE8 font style is lost.

To reproduce:

  • Click on new Page button
  • Press Enter 4 times
  • Type "ABCD", select it and apply: Bold, Font-style Comic-Sans, Font-size 26px.
  • Select "BC", press CRTL+C
  • Paste it in one of lines above with CRTL+V or paste button.

As a result, from:

<span style="font-size: 18px"><span style="font-family: comic sans ms, cursive"><strong>ABCD</strong></span></span>

you get

<strong><font size="4">BC</font></strong>

Please note that face attribute is lost (doesn’t happen in other IEs). This does not happen when you select whole text. Even span tag isn't lost then.

comment:7 Changed 11 years ago by Jakub Ś

Resolution: duplicate
Status: confirmedclosed

@karena your issue is actually a DUP of #3786

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