This is a migrated thread and some comments may be shown as answers.

[Solved] Inconsistent Behavior When Pasting

1 Answer 91 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Richard
Top achievements
Rank 1
Richard asked on 27 Oct 2009, 08:44 PM
Hi!

I am using 2009.2.701.35 version of the Tools.

When I paste from Word, I am losing my font info even though I have  StripFormattingOnPaste="MSWord"  defined.

The issue is the Font tag is getting stripped even though the doc says "MSWord: strips Word-specific tags on Paste, preserving fonts and text sizes. "

When I paste, the resulting HTML is:
<p class="MsoNormal" style="margin: 0in 0in 10pt;"><span style="font-size: 12pt; line-height: 115%;">Book Antiqua 12</span></p>

I am expecting that the font is preserved from the un-cleaned original:
<span style="font-size: 12pt; line-height: 115%; font-family: 'book antiqua','serif'; mso-bidi-font-family: 'times new roman'; mso-fareast-font-family: calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: en-us; mso-fareast-language: en-us; mso-bidi-language: ar-sa;">Book Antiqua 12</span>

Please Notice that the font-family attribute is missing from the MSWord cleaned paste.

I can reproduce this on the Telerik web site in the editor demo area.

Is there a fix for this?  My customers expect that their fonts are preserved. 

Thanks for your help! :-)
Rich

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 30 Oct 2009, 09:02 AM
Hi Rich,

Thank you for reporting this problem.

I was able to reproduce it and logged it for fixing in our bug tracking system. It seems that this problem appeared in some of the RadEditor for ASP.NET AJAX builds because it does not exist in RadEditor Classic. Nevertheless, we will examine the editor's code and fix the issue for one of the next hotfixes of RadEditor.

As a small note of gratitude for your assistance and bug report I updated your Telerik points in your account.

Greetings,
Rumen
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Editor
Asked by
Richard
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or