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

Track Changes between two contents initially.

0 Answers 85 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Mangesh
Top achievements
Rank 1
Mangesh asked on 19 Sep 2014, 12:13 PM
Hi,

I wanted to show changes between two contents from database initially on RadEditor. For this purpose, I have used DiffEngine class and .GetDiffs method to implement difference between two contents. It's working in following way,

For e.g. If

string content1 = "<h1> This is Header </h1>";
string content2 = "<h1> This is Headerssss </h1>";
DiffEngine diff = new DiffEngine();
string result = diff.GetDiffs(content2, content1);

// output of result using GetDiffs method is = "<h1> This is <span class="diff_deleted">Header </span><span class="diff_new">Headerssss </span></h1>";
// Expected output is = "<h1> This is Header<span class="diff_new">ssss </span></h1>";

As you can see that in content2, only ssss has been added to content1.
Can we achieve such functionality in RadEditor or using DiffEngine class?














No answers yet. Maybe you can help?

Tags
Editor
Asked by
Mangesh
Top achievements
Rank 1
Share this question
or