Opened 14 years ago

Closed 11 years ago

Last modified 9 years ago

#4887 closed Bug (duplicate)

Paste: Font face and sizes not recognised on pasted content from word

Reported by: Damian Owned by:
Priority: Normal Milestone:
Component: Core : Pasting Version: 3.1
Keywords: IBM Cc: satya_minnekanti@…

Description

When copying formatted text (font face & font size set) from Word, the font face and/or size is not recognized by the editor. Paste config options used:

config.pasteFromWordRemoveFontStyles = false; 
config.pasteFromWordRemoveStyles = false;

In the case of the font size, the pasted content uses points whereas the editor uses pixels.

Attachments (1)

fonts.doc (23.5 KB) - added by Jakub Ś 11 years ago.

Download all attachments as: .zip

Change History (12)

comment:1 Changed 14 years ago by Garry Yao

Keywords: Confirmed added
Milestone: CKEditor 3.1CKEditor 3.2

We don't suppose to target font-face and size normalization at this point, leave it open for further investigation.

comment:2 Changed 14 years ago by Garry Yao

Milestone: CKEditor 3.2CKEditor 3.3

comment:3 Changed 14 years ago by Garry Yao

Milestone: CKEditor 3.3CKEditor 3.x

Defer it due to the complexity of this feature.

comment:4 Changed 14 years ago by Frederico Caldeira Knabben

Milestone: CKEditor 3.x

Milestone CKEditor 3.x deleted

comment:5 Changed 14 years ago by Paweł Horzela

Owner: set to Paweł Horzela
Status: confirmedassigned

comment:6 Changed 13 years ago by Paweł Horzela

Owner: Paweł Horzela deleted
Status: assignednew

comment:7 Changed 13 years ago by Satya Minnekanti

Cc: satya_minnekanti@… added

comment:8 Changed 13 years ago by Jakub Ś

Status: newconfirmed
Version: 3.1

This issue was duplicated and confirmed in #7797

comment:9 Changed 11 years ago by Lynne Kues

This has become a high priority customer issue for us.

Changed 11 years ago by Jakub Ś

Attachment: fonts.doc added

comment:10 Changed 11 years ago by Jakub Ś

Resolution: duplicate
Status: confirmedclosed

Code that is seen by browser is:

<p class="MsoNormal"><span style="font-size:14.0pt" lang="EN-US">Times New Roman,
14</span></p>

<p class="MsoNormal"><span style="font-family:&quot;Comic Sans MS&quot;" lang="EN-US">Comic
Sans Serif, 12</span></p>

<p class="MsoNormal"><span style="font-size:16.0pt;font-family:Georgia" lang="EN-US">Georgia</span><span style="font-size:16.0pt;font-family:Georgia" lang="EN-US">, 16</span></p>
  1. It seems Times New Roman isn't passed to browser. If there is no font specified then there is no way for editor to recognize font. I don't see error here.
  1. In second case font-family is comic sans ms while editor has comic sans ms,cursive defined. Since font doesn't match it isn't recognized. This has already been described in #9964.
  1. Font family Georgia is recognized by editor but font size in points isn't. This is happening again because font-sizes in points aren't defined in editor by default and this is again #9964 issue.

Since both problems concern feature mentioned in #9964 I’m closing this ticket as duplicate.

DUP of #9964.

Version 0, edited 11 years ago by Jakub Ś (next)

comment:11 Changed 9 years ago by Wiktor Walc

I'm not sure if it's a full duplicate of #9964 because the information about the size and color is lost during PFW for the attached document?

Win 7, Office 2010

config.pasteFromWordRemoveFontStyles = false; 
config.pasteFromWordRemoveStyles = false;

IE11, ACF enabled, CKE 4.4.6

<p><span style="font-size:14pt">Times New Roman, 14</span></p>

<p><span style="font-family:comic sans ms">Comic Sans Serif, 12</span></p>

<p><span style="font-family:georgia,serif; font-size:16pt">Georgia</span><span style="font-family:georgia,serif; font-size:16pt">, 16</span></p>

IE11, ACF disabled, CKE 4.4.6

<p style="margin: 0in 0in 0pt;"><span style="font-size: 14pt;"><font color="#000000" face="Times New Roman">Times New Roman, 14</font></span></p>

<p style="margin: 0in 0in 0pt;"><span style="font-family: &quot;Comic Sans MS&quot;;"><font color="#000000" size="3">Comic Sans Serif, 12</font></span></p>

<p style="margin: 0in 0in 0pt;"><span style="font-family: &quot;Georgia&quot;,&quot;serif&quot;; font-size: 16pt;"><font color="#000000">Georgia</font></span><span style="font-family: &quot;Georgia&quot;,&quot;serif&quot;; font-size: 16pt;"><font color="#000000">, 16</font></span></p>
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