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

RadEditor: It is impossible to cancel underline.

1 Answer 138 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Friar
Top achievements
Rank 1
Friar asked on 20 Oct 2011, 10:07 AM
Hi.
It is impossible to cancel underline to part of text(and all) which was pasted from Word.
<span style="text-decoration: underline; font-size: 12pt; font-family: cambria;">Text Text</span>

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 24 Oct 2011, 01:35 PM
Hello Friar,

RadEditor uses the execCommand method and the built-in browser'sUnderline command to apply or remove underline formatting to / from the selected content. This browser command however works only for <u> tags, but not with inline "text-decoration: underline;" css style attributes. RadEditor uses the browser's Underline command because in other case there could arise problems with selections, nested tags and not well formed HTML content.

Kind regards,
Rumen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
Editor
Asked by
Friar
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or