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

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

3 Answers 56 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Abilis Solutions
Top achievements
Rank 1
Abilis Solutions asked on 07 Jul 2008, 05:04 PM
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

3 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 08 Jul 2008, 10:00 AM
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
0
Abilis Solutions
Top achievements
Rank 1
answered on 09 Jul 2008, 02:55 PM
Thank-you, that did the trick.

Luke
0
Amjad
Top achievements
Rank 1
answered on 22 Jul 2012, 01:47 PM
hi
am facing this issue too and tried your solution and didnt work.

shall i change on the content filters ? any ideas
Tags
Editor
Asked by
Abilis Solutions
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Abilis Solutions
Top achievements
Rank 1
Amjad
Top achievements
Rank 1
Share this question
or