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

Capitalized HTML source tag not preserved

2 Answers 41 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Chuck
Top achievements
Rank 1
Chuck asked on 09 Dec 2014, 01:56 AM
Hello,

Is there a way to preserve capitalized HTML tag in the telerik editor when switching from HTML mode to Design/Preview mode and back to HTML mode? Switching between editor modes always converting the HTML tag to lower case tag. Please see screen shots CaptureBefore.PNG (initial edits in HTML mode) and CaptureAfter.PNG (back to HTML mode from either Design or Preview mode). 

2 Answers, 1 is accepted

Sort by
0
Chuck
Top achievements
Rank 1
answered on 09 Dec 2014, 02:56 PM
Following up the my previous. If I load HTML source (with upper case HTML tags) into the telerik editor and select HTML mode for display, there is no conversion of the upper case HTML tag to lower case HTML tag. I need to switch from HTML mode to preview/Design mode and back to HTML mode to make the lower case conversion.  Is there any automatic way to make consistent lower case tag conversion in the telerik editor.

For example, when load the HTML source (with upper case tag) into Telerik editor and then select HTML mode, the HTML source still showing upper case HTML tags:

<OD>
    <LI>test 1</LI>
    <li>test 2</li>
    <li>test 3</li>
</OD>

Thanks
/Chuck
0
Ianko
Telerik team
answered on 11 Dec 2014, 03:38 PM
Hi Chuck,

The transformation of the capitalized tag names is done via the ConvertToXhtml filter. This is designed to eliminate side effects from inconsistent browser behavior where tag names are always returned  capitalized under IE 7 and 8 by the innerHTML property of DOM elements.

Although, even if the filter is disabled, some browser may always convert tag names to lower case. Therefore, I am unable to suggest a way to use tag names with capital letters. You can try it on your end by setting the ContentFilters to None and test again the same scenario.

Regards,
Ianko
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Editor
Asked by
Chuck
Top achievements
Rank 1
Answers by
Chuck
Top achievements
Rank 1
Ianko
Telerik team
Share this question
or