Opened 8 years ago

Closed 8 years ago

Last modified 6 years ago

#8390 closed Bug (wontfix)

Setting pasteFromWordRemoveFontStyles to false not working properly

Reported by: naresh.sivaraman Owned by:
Priority: Normal Milestone:
Component: Plugin : Paste from Word Version: 3.4.2
Keywords: CantFix Cc:

Description

We have set pasteFromWordRemoveFontStyles to false in our config.

After that, when trying to copy a text of font 'Georgia' and size '10', we see that the font is copied properly, but the size is not. Size is copied as 12pt in the CKEDITOR. I am attaching the .doc file along.

Tested with MS Word 2007.

Could not test this with ckeditor.com/demo as the config parameter is not set i believe.

Attachments (1)

test1.doc (22.0 KB) - added by naresh.sivaraman 8 years ago.

Download all attachments as: .zip

Change History (3)

Changed 8 years ago by naresh.sivaraman

Attachment: test1.doc added

comment:1 Changed 8 years ago by Frederico Caldeira Knabben

Component: GeneralCore : Pasting
Keywords: CantFix added
Resolution: wontfix
Status: newclosed

The following is the HTML that browsers receive from Word when pasting happens from that document:

IE:

<p style="margin: 0cm 0cm 0pt;" class="jason"><font size="2"><b style="mso-bidi-font-weight: normal;"><span style='font-family: "Georgia","serif";'>Test</span></b><span style='font-family: "Georgia","serif";'>
of <u>New</u> <i style="mso-bidi-font-style: normal;">Style</i><?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></span></font></p>

Firefox:

<!-- ... a lot of Word rubbish, then the following ... --->

<p class="jason"><b style="mso-bidi-font-weight:normal"><span style="font-family:
&quot;Georgia&quot;,&quot;serif&quot;">Test</span></b><span style="font-family:&quot;Georgia&quot;,&quot;serif&quot;">
of <u>New</u> <i style="mso-bidi-font-style:normal">Style</i></span></p>

As we can see, there is no proper size information on the data, so there is nothing we can do here.

comment:2 Changed 6 years ago by Frederico Caldeira Knabben

Component: Core : PastingPlugin : Paste from Word
Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy