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

Bold and Italic Should Be Strong and Em in Editor

1 Answer 159 Views
Editor
This is a migrated thread and some comments may be shown as answers.
mattzilla
Top achievements
Rank 1
mattzilla asked on 11 Aug 2008, 01:49 AM
If a content region contains either a <strong> or <em> tag, when viewed in the editor, they are actually <b> and <i> (this can be determined by inspecting with Firebug), and also through the RadDomInspector.

However, if your style sheet purposely styles <strong>s and <em>s, these styles are obviously not reflected.

I have tested and <strong>s and <em>s are reflected correctly in the much older v6.5.0.

Is this something that you can implement again? I don't want to have to style <b> and <i> too.

Thanks

Matt


1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 11 Aug 2008, 07:06 AM
Hi Matt,

In order to produce identical content for BOLD and ITALIC in Internet Explorer and Firefox, RadEditor uses a content filter which converts all <b> and <i> tags to <strong> and <em> in Firefox when switching to Html mode or submitting the content. The content filter converts the <strong> and <em> tags to <b> and <i> when switching back to Design mode because the browser commands works with these tags as well as to avoid side effects and problems.

You can disable this filter with the following code:

RadEditor1.DisableFilter(Telerik.Web.UI.EditorFilters.MozEmStrong);

You can also implement your own content filter that will convert the tags per your needs in both Html and Design modes.

Kind regards,
Rumen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Editor
Asked by
mattzilla
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or