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

Track Text Changes

4 Answers 94 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Vincent
Top achievements
Rank 1
Vincent asked on 10 Jun 2010, 06:11 AM
I want to popup an alert if editor content has been changed before user leave the page. I couldn't find any way to detect it.

4 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 10 Jun 2010, 09:26 AM
Hello Vincent,

One suggestion would be saving the content initially in a variable and comparing explicitly with the RadEditor content when you need. You can obtain the content on the client using the editor.get_html(true) method and check whether it is changed by attaching your code to the onkeydown event using the attachEventHandler method.

-Shinu.
0
Vincent
Top achievements
Rank 1
answered on 10 Jun 2010, 11:44 AM
Hi Shinu

First, thanks for your suggestion. Your idea is exactly what I think. But I'd like to see more easy solution or built-in event from radeditor
0
Steve Napurano
Top achievements
Rank 1
answered on 14 May 2011, 05:10 AM
I could use the answer to this but the links in a lot of your forums are broken.
I need to do exactly this...

Thanks
0
Rumen
Telerik team
answered on 18 May 2011, 01:34 PM
Hi Steve,

Here are the correct links:

editor.get_html(true) - http://www.telerik.com/help/aspnet-ajax/editor-get-html.html
attachEventHandler method - http://www.telerik.com/help/aspnet-ajax/editor-attacheventhandler.html


Kind regards,
Rumen
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Editor
Asked by
Vincent
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Vincent
Top achievements
Rank 1
Steve Napurano
Top achievements
Rank 1
Rumen
Telerik team
Share this question
or