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

Track changes tool in Rad editor

1 Answer 175 Views
Editor
This is a migrated thread and some comments may be shown as answers.
amith
Top achievements
Rank 1
amith asked on 04 Jun 2008, 08:38 AM
Hi,
I am using Rad controls in my Project.
I am doing some R & D on Rad editor. I just wanted to know how the "Track changes " option in Rad editor works.
I got to know that  the editor exposes a method set_intitialContent() that, when called, will mark the current editor content as the "start" content to be used in the dialog. You can get the content which is set as initial with the get_initialContent() method. You can get the current content in the editor with editor.get_html().

Now I want to know how it compares the old content and new content and displays the final result. could please let me know which function does this??

Thanks.

 

1 Answer, 1 is accepted

Sort by
0
Accepted
Tervel
Telerik team
answered on 09 Jun 2008, 07:44 AM
Hi amith,

The "old" and "new" contents are compared in a special dialog "TrackChanges" that is available in this example:
http://www.telerik.com/demos/aspnet/prometheus/Editor/Examples/XhtmlValidatorTrackChangesFormatCodeBlockDialogs/DefaultCS.aspx

It is also possible to invoke the functionality from the codebehind, without using the editor by creating an instance of the following class Telerik.Web.UI.Editor.Diff.DiffEngine and using its GetDiffs method.

Best regards,
Tervel
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Editor
Asked by
amith
Top achievements
Rank 1
Answers by
Tervel
Telerik team
Share this question
or