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

Colored UnderLine Problem

5 Answers 66 Views
Editor
This is a migrated thread and some comments may be shown as answers.
UMA MAHESWARA RAO
Top achievements
Rank 1
UMA MAHESWARA RAO asked on 03 Oct 2011, 11:20 AM
If i given colored underline for a word, i am not able to delete the Underline and if i given uncolored Underline to a word the underline is able to delete. 
So,Please give me any solution to that problem.

5 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 05 Oct 2011, 02:50 PM
Hi Uma,

I tried to reproduce the problem but without success. You can see my test in the following video: http://screencast.com/t/RiHEimiR4L.

Could you please specify the used browser, its version and provide detailed step-by-step instructions and content which will help us to replicate the issue on our side?

Greetings,
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
0
UMA MAHESWARA RAO
Top achievements
Rank 1
answered on 07 Oct 2011, 01:45 PM
Hi Rumen,
Thanks for reply, My functionality is different as i am insert the RadEditor value with underline insert into Database it is working fine but while Editing the text i am not able to remove the underline from the Text
0
Rumen
Telerik team
answered on 11 Oct 2011, 01:46 PM
Hi Uma,

Could you please send a sample HTML snippet from your Database, which will help me to reproduce the Underline removal problem?


All the best,
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
0
UMA MAHESWARA RAO
Top achievements
Rank 1
answered on 12 Oct 2011, 06:32 AM
Hi Rumen,
Thanks for your Reply, Here i am pasted HTML snippet from my Database
"<strong><span style="color: #ff0000; text-decoration: underline;">&nbsp;Section Header Element</span></strong>". Please let me know have solution for it.

Greetings,
Uma Mahesh

0
Rumen
Telerik team
answered on 13 Oct 2011, 04:43 PM
Hello Uma,

RadEditor uses the execCommand method and the built-in browser's Underline 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.

Greetings,
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
UMA MAHESWARA RAO
Top achievements
Rank 1
Answers by
Rumen
Telerik team
UMA MAHESWARA RAO
Top achievements
Rank 1
Share this question
or