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

Add CSS Class using <font> instead of <span>

1 Answer 74 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Lance Long
Top achievements
Rank 1
Lance Long asked on 05 May 2010, 02:41 AM
I created a style .tt{...} to replace the <tt> tag (since I didn't see how to enable the button on the toolbar).  However, if I select a portion of a paragraph, the Add CSS Class menu adds the class in a font tag which is non-compliant and nasty.  How do I overide and make it use a span tag?

Format now:
<p>This is my <font class="tt">monospace text</font></p>

Desired format:
<p>This is my <span class="tt">monospace text</span></p>

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 05 May 2010, 12:32 PM
Hello Lance,

The ConvertFontToSpan filter automatically converts all font tags to span tags when switching to HTML mode or submitting the content. You should make sure that this filter is enabled.

You can test the filter in this demo: Built-in Content Filters.

Kind 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.
Tags
Editor
Asked by
Lance Long
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or