Track Text Changes

5 posts, 0 answers
  1. Vincent
    Vincent avatar
    70 posts
    Member since:
    Jul 2008

    Posted 10 Jun 2010 Link to this post

    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.
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 10 Jun 2010 Link to this post

    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.
  3. Vincent
    Vincent avatar
    70 posts
    Member since:
    Jul 2008

    Posted 10 Jun 2010 Link to this post

    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
  4. Steve Napurano
    Steve Napurano avatar
    40 posts
    Member since:
    Aug 2009

    Posted 14 May 2011 Link to this post

    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
  5. Rumen
    Admin
    Rumen avatar
    13804 posts

    Posted 18 May 2011 Link to this post

    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.

Back to Top