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

How to prevent inline styles from the tools

3 Answers 91 Views
Editor
This is a migrated thread and some comments may be shown as answers.
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
sitefinitysteve asked on 14 Nov 2014, 09:03 PM
I was working with the editor today and noticed that for underline it does an inline <span style="text-etc wrapper on the element instead of the <u> I was expecting.

Why does it do this, cross-browser issue or something?

3 Answers, 1 is accepted

Sort by
0
Alex Gyoshev
Telerik team
answered on 17 Nov 2014, 11:58 AM
Hello Steve,

This is done because the underline tag was deprecated in HTML4.01. Alas, it was reintroduced in HTML5. Either way, this behavior cannot be modified at this time, but you can post-process the editor content to convert it in any format you need.

Regards,
Alex Gyoshev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
1
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
answered on 17 Nov 2014, 05:09 PM
If it's part of 5 though, you guys will eventually update the editor though right?  I don't really dig the idea of post-processing every single editor we use.

Just looking for a "yeah we know about it, will fix later"
-1
Alex Gyoshev
Telerik team
answered on 18 Nov 2014, 01:24 PM
Hello Steve,

This has been requested several times; however, the b / i / u tags do not convey semantic meaning. At the end, this is more of a feature that we have in mind (configuration option of what tags to export). We have logged it for consideration, but you can raise its priority by logging it on UserVoice.

Regards,
Alex Gyoshev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Editor
Asked by
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
Answers by
Alex Gyoshev
Telerik team
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
Share this question
or