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

Style of text copied from Word

2 Answers 37 Views
Editor
This is a migrated thread and some comments may be shown as answers.
jc mag
Top achievements
Rank 1
jc mag asked on 29 Sep 2011, 11:09 AM

One of my end-user copied this kind of text from Word:

<P class=MsoNormal><B style="mso-bidi-font-weight: normal"><SPAN style="TEXT-DECORATION: underline"><SPAN style="mso-ansi-language: EN-US" lang=EN-US>Symptom<o:p></o:p></SPAN></SPAN></B></P>

The problem is that the RadEditor transforms that to:

<p class="MsoNormal"><b style="mso-bidi-font-weight: normal;">Symptom<o:p _rdEditor_exists="1"></o:p></b></p>

Here, the "underline" style disappears. Is there a way to prevent that? 

2 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 03 Oct 2011, 01:13 PM
Hello Jc Mag,

Could you please disable the FixUlBoldItalic and MozEmStrong content filters and test again?

All the best,
Rumen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
jc mag
Top achievements
Rank 1
answered on 03 Oct 2011, 01:48 PM
Thank you very much for your reply; actually I found the problem is fixed by removing the ConvertToXhtml filter.
By using this setting, the underline style is kept:

ContentFilters

 

 

="RemoveScripts,EncodeScripts,FixEnclosingP,ConvertFontToSpan,OptimizeSpans, IndentHTMLContent,ConvertInlineStylesToAttributes,FixUlBoldItalic,MozEmStrong"

 

Tags
Editor
Asked by
jc mag
Top achievements
Rank 1
Answers by
Rumen
Telerik team
jc mag
Top achievements
Rank 1
Share this question
or