Server Side Content property does not return same html as client side get_html()

4 posts, 0 answers
  1. Abilis Solutions
    Abilis Solutions avatar
    9 posts
    Member since:
    May 2008

    Posted 07 Jul 2008 Link to this post

    I am using the RADEditor and noticed that when the content property on the server side return different html than the client side method radEditor.get_html();

    I am looking for changes made in the content to post a message if the user trying to navigate away from the page (ie IsDirty). When the page is loaded with the RadEditor, and NO changes are made using the control. The comparison of Radeditor.Content <> radEditor.get_html();

    Any ideas?

    Luke
  2. Rumen
    Admin
    Rumen avatar
    14422 posts

    Posted 08 Jul 2008 Link to this post

    Hi Luke,

    Could you please set the true argument of the get_html method

    get_html(true)

    and test again the result. When the true argument is set the get_html method will return the content via the editor's client-side functions.

    By the way you can see the following forum thread on the subject which could be helpful for your scenario: Detect editor content change. The code applies to RadEditor Classic, but you can see how to attached event handlers in RadEditor for ASP.NET AJAX here.

    Best regards,
    Rumen
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. Abilis Solutions
    Abilis Solutions avatar
    9 posts
    Member since:
    May 2008

    Posted 09 Jul 2008 Link to this post

    Thank-you, that did the trick.

    Luke
  4. Amjad
    Amjad avatar
    36 posts
    Member since:
    Dec 2010

    Posted 22 Jul 2012 Link to this post

    hi
    am facing this issue too and tried your solution and didnt work.

    shall i change on the content filters ? any ideas
Back to Top