Opened 12 years ago

Closed 12 years ago

Last modified 10 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:


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 as the config parameter is not set i believe.

Attachments (1)

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

Download all attachments as: .zip

Change History (3)

Changed 12 years ago by naresh.sivaraman

Attachment: test1.doc added

comment:1 Changed 12 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:


<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>


<!-- ... 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 10 years ago by Frederico Caldeira Knabben

Component: Core : PastingPlugin : Paste from Word
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