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

Backspace leaves html tags

3 Answers 55 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Avinash
Top achievements
Rank 1
Avinash asked on 12 Oct 2010, 01:18 PM
Hi,
I am using RadEditor and custom validation to check whether number of characters is more than 1000 (including html tags).
Here is the code part,
     <radE:RadEditor StripFormattingOnPaste="noneSupressCleanMessage" Height="100px" Width="98%"
                                        ID="_LongDescription" runat="server" OnClientLoad="OnClientLoadDetails" >
                                    </radE:RadEditor>

When i use the backspace to delete the text, text is getting removed but html tags still remains same. I am facing this problem while performing validation.

Any help is appreciated.

Thanks

3 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 12 Oct 2010, 05:11 PM
Hi Avinash,

Are you able to reproduce the problem in the following demo: Validators?

You can also try to select the whole content with Ctrl+A and after that to delete it using BackSpace or Delete.

Best regards,
Rumen
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
Avinash
Top achievements
Rank 1
answered on 13 Oct 2010, 10:29 AM
Hi,
Thanks for your quick reply.

When i perform CTRL+A and delete/backspace, its working fine. Only when i use backspace, text is getting removed and when i navigate to html mode, i can still see html tags.

This happens only when i copy and paste some text to rad editor.

Here is scenario,

1. Type some text in winword, bold some text, give some colors to text.
2. Copy this text and paste it to rad editor
3. Using backsapce delete all the text (dont use ctrl+a and delete/backsapce)
     Here just to get the clear idea i am telling to delete all the text.
4. Navigate to html mode, you can still see html tags!!!!

i hope you got my point.

Thanks,
0
Rumen
Telerik team
answered on 13 Oct 2010, 02:33 PM
Hello Avinash,

This is a behavior of the rich text editing engine of the browser. The content area of RadEditor is a standard editable IFRAME element and the delete process is controlled by the browser itself.

 You can strip the remaining tags either through the DOM Inspector module, manually in the HTML Viewer module or by switching to HTML mode as shown in this video: http://screencast.com/t/dkvnieR5pwS.

All the best,
Rumen
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
Editor
Asked by
Avinash
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Avinash
Top achievements
Rank 1
Share this question
or