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

RadRichTextBox not supporting <em> tags

3 Answers 74 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Kevin
Top achievements
Rank 1
Kevin asked on 09 Nov 2010, 08:24 PM
Our implementation of the RichTextEditor is intended to allow the user to share the same HTML between the RadEditor in ASP.NET and the RadRichTextBox.

The first issue we have come across is that the ASP.NET RadEditor generates <em> tags to designate italics and the RadRichTextBox does not handle these correctly; it does not display the text within these tags.  Replacing the <em> with an <i> works as expected but since we want to share HTML between ASP.NET and Silverlight, manually changing this on each ASP.NET save would not be optimal.

The HTML that we are using is:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<
html xmlns="http://www.w3.org/1999/xhtml">
    <
head>
        <
title>Untitled</title>
        <
meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <
style type="text/css">
            .p_CC664AAA { margin: 0px 0px 12px 0px;text-align: left;text-indent: 0pt;padding: 0px 0px 0px 0px; }
            .s_1681A555 { font-family: 'Times New Roman';font-style: Normal;font-weight: normal;font-size: 16px;color: #000000; }
        </style>
    </
head>
    <
body>
        <
p class="p_CC664AAA">
            <
span class="s_1681A555">This is <strong>bold</strong> text, this is <em>italic</em> text, and this is <span style="text-decoration: underline;">underlined</span> text.</span>
        </
p>
    </
body>
</
html>

Thank you,
Kevin

3 Answers, 1 is accepted

Sort by
0
Iva Toteva
Telerik team
answered on 11 Nov 2010, 01:15 PM
Hi Kevin Kalitowski,

The list of supported HTML tags is still evolving. You can see which tags are currently supported at http://www.telerik.com/help/silverlight/radrichtextbox-features-html-support.html.
In 2010.Q3 version we also added support for tables and the corresponding tags - table, tr, td.
<EM> tags do not fall within this category for now, but we will make sure to introduce support for them in the service pack. If you think of another functionality that RadRichTextBox is missing, we will appreciate your feedback.


Kind regards,
Iva
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
Kevin
Top achievements
Rank 1
answered on 30 Nov 2010, 03:27 PM
Could you tell me if you support any methods of sharing HTML between the ASP.NET RadEditor and the Silverlight RadRichTextBox, or if there are any plans for future support?  The solution would have to support both directions of sharing between the controls.

The ASP.NET control uses HTML tags to do the formatting and only grudgingly supports CSS (it appears difficult to make it support the Silverlight output), while the Silverlight control uses CSS for its formatting and only has minimal support of HTML tags.

Thank you,
Kevin
0
Ivailo Karamanolev
Telerik team
answered on 30 Nov 2010, 04:37 PM
Hi Kevin Kalitowski,

We have already implemented support for <em> and <strong>. This will be visible at the latest in Q3 SP1 coming in mid-December. If you note any other missing formatting tags, please, let us know and we'll have it underway immediately.
We currently don't have a plan to support exporting styles using formatting tags. However, the CSS support of RadEditor should be good enough to handle most, if not all of the styles exported from RadRichTextBox. We'll be glad to hear if you experience any specific roadblocks when going for this approach, the only requirement being that you export the CSS styles as inline (this is specified in the ExportSettings of HtmlFormatProvider).
Get back to us if you have any feedback or questions regarding this issue.

All the best,
Ivailo
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
Tags
RichTextBox
Asked by
Kevin
Top achievements
Rank 1
Answers by
Iva Toteva
Telerik team
Kevin
Top achievements
Rank 1
Ivailo Karamanolev
Telerik team
Share this question
or