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

Editor - Track Changes, How it works?.

1 Answer 142 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Anbu
Top achievements
Rank 1
Anbu asked on 10 Sep 2010, 05:17 PM
Guys,

We r planning to buy Telerik Asp Ajax controls. I would like to know how the track changes works in the editor?. I got requirement to integrate track changes facility in editor, When some one edits the rich text content and submit the content for approval, the Approver/Manager should be able view the track changes. So I would like to know, how the track changes works?. Will the track changes is retained over postbacks. Is the track changes contents are stored inside the actual data?.

Can you provide me the full details of how the track changes works in Telerik Editor?.

Thanks,
Anbu

1 Answer, 1 is accepted

Sort by
0
Dobromir
Telerik team
answered on 15 Sep 2010, 12:52 PM
Hi Anbu,

The TrackChanges dialog is using  a helper class DiffEngine located in the Telerik.Web.UI.Editor.Diff namespace. The method that does the actual work is GetDiffs(curContent, initContent). This method compares the two parameters and modifies the result to apply the decorations.

Current and initial contents are stored in hidden fields in the dialog passed as an arguments to the TrackChangesDialog RadEditor's command. In order to get the initial and current content you can use the corresponding client-side methods - get_initialContent(), get_html(true).

I believe the following forum thread will be of great help to achieve the required functionality:
http://www.telerik.com/community/forums/aspnet-ajax/editor/tracking-changes.aspx
http://www.telerik.com/community/forums/aspnet-ajax/editor/save-track-changes-content-without-dialog.aspx

Sincerely yours,
Dobromir
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Editor
Asked by
Anbu
Top achievements
Rank 1
Answers by
Dobromir
Telerik team
Share this question
or