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

[Solved] supporting "sub", "super", and "i" HTML tags

3 Answers 82 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Rich
Top achievements
Rank 1
Rich asked on 26 Aug 2010, 06:45 PM
We've noticed the following behavior and are wondering if this is an unsupported feature in the RichTextBox or if we are possibly doing something wrong when importing HTML.

1. Create a document in the Telerik demos. Subscript and superscript some of the text.

2. Save the document as an .html document. It saves as valid .html, and it displays correctly in a browser.

3. Go back to Telerik's demo editor. Open the .html document. The text is now missing the subscript/superscript.


In the RadTextBox that we're using in our project, with the styling we apply to the code, the problem is worse: the text gets cut out completely.

We've noticed the same issue with HTML containing the "i" tag, but not the "em" tag.

Any insight would be greatly appreciated.  Thanks,

- Rich

3 Answers, 1 is accepted

Sort by
0
Boby
Telerik team
answered on 27 Aug 2010, 09:54 AM
Hello Rich,

Thanks for reporting this. Actually, we already noticed and corrected this issue, and the fix will be available in the next Latest Internal Build, expected in the end of the week.
Any other feedback will be appreciated.

Greetings,
Boby
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
Rich
Top achievements
Rank 1
answered on 07 Sep 2010, 08:55 PM
We have tested this with the latest build dated 9/03 (http://www.telerik.com/versionnotes.aspx?nb=1&id=795), but the problem is still there: when we use the <super> tag, the tag is ignored and the text inside the tag is omitted.  We also noticed the RadRichTextBox isn't mentioned in the release note.  Could you tell us if the fix was delayed to a later build, or do you have any other suggestions?
0
Boby
Telerik team
answered on 10 Sep 2010, 01:06 PM
Hello Rich,
You are right, the importer does not work as expected in the LIB too. I've created PITS issue, so you can track its current status here.
As a temporary workaround, you can put text in <sub> and <sup> tags in <span> tag - like this:
<html>
    <body>
        <p>
            <sub><span>sub</span></sub>normal<sup><span>sup</span></sup>
        </p>
    </body>
</html>
This way the text will be imported correctly.

Please, excuse us for the inconvenience. We have added points to your account for the bug report. Don't hesitate to contact us if you have other questions.


Regards,
Boby
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
RichTextBox
Asked by
Rich
Top achievements
Rank 1
Answers by
Boby
Telerik team
Rich
Top achievements
Rank 1
Share this question
or