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

RadEditor FontNames: Font disappears in Firefox

3 Answers 56 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Rudolf
Top achievements
Rank 1
Rudolf asked on 22 Oct 2010, 01:50 PM
It's quite interessting.
I'm feeding the FontNames property with (editable) fontnames like "Arial,sans-serif" ( Editor.FontNames.Add() ).
Now we have encountered that fontnames with numbers like "Univers LT 45 Light,sans-serif" causes problems.
You can select it and everything seems fine.
But if you select HTML-View it disappears and looks like this: "<span>test</span>".
Remove the number ("Univers LT Light,sans-serif") and it works.

Luckily I found a workaround: 'Univers LT Light',sans-serif
Using single quotes around the name and it seems to work.

Is there another workaround/hack for this issue?
This only happens in Firefox (3.6.11), in IE it's fine.

3 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 22 Oct 2010, 05:00 PM
Hi Rudolf,

I am glad that you have found a solution for this browser problem, which does not exist in IE. If you do not wrap the 'Univers LT 45 Light' font in single quotes this will breaks the ConvertFontToSpan filter and it will strip the font tag information during the convertion to span tag. You should either disable the filter (RadEditor1.DisableFilter(EditorFilters.ConvertFontToSpan);) or manually the font in single quotes.

Best regards,
Rumen
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
tbarrawi
Top achievements
Rank 1
answered on 11 Oct 2011, 03:46 PM
Hi,
this is happening for Radeditor 5.8.10.0 for sharepoint and i have the radeditor enabled for wiki links. How can i disable font to span convertor in a sharepoint environment for wiki lists?

Thanks,
Sergiu
0
Rumen
Telerik team
answered on 12 Oct 2011, 12:59 PM
Hello Sergiu,

If you want to disable the ConvertFontToSpan filter of RadEditor for MOSS then you will need to modify the respective ConfigFile.xml or ListConfigFile.xml placed in the /Program Files/Common Files/Microsoft Shared/web server extensions/wpresources/RadEditorSharePoint/5.8.10.0__1f131a624888eeed/Resources/ folder. Just list the content filters that you want to be enabled:

<property name="ContentFilters">RemoveScripts,FixUlBoldItalic,FixEnclosingP,IECleanAnchors,MozEmStrong,ConvertToXhtml,IndentHTMLContent</property>

Best wishes,
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
Tags
Editor
Asked by
Rudolf
Top achievements
Rank 1
Answers by
Rumen
Telerik team
tbarrawi
Top achievements
Rank 1
Share this question
or