Opened 14 years ago
Closed 12 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
Status: | new → pending |
---|
comment:2 Changed 14 years ago by
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 <span style="display: none"> </span></font>
comment:3 Changed 13 years ago by
Keywords: | IE added |
---|---|
Status: | pending → confirmed |
Version: | → 3.0 |
- Open replacebycode sample.
- Select whole sample text and press 'Remove Format' button
- Select "is some sample text" and change size to 24
- Select word "some" and press CRTL+C
- 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:5 Changed 12 years ago by
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
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 12 years ago by
Resolution: | → duplicate |
---|---|
Status: | confirmed → closed |
@karena your issue is actually a DUP of #3786
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?