Completed
Last Updated: 15 Mar 2016 10:52 by Pankaj
ADMIN
Ianko
Created on: 19 Dec 2013 13:47
Category: Editor
Type: Feature Request
5
When AcceptTrackChanges() method is being used from the code behind, inline formatting is not accepted as expected
For example the Bold, Italic, Underline and Strike-trough commands are not accepted by invoking the AcceptTrackChanges() method. After the post back, the track changes stylization is still the same and the attributes set from the feature (cite, author, timestamp etc.) are not stripped. 

A possible workaround is using the corresponding method via the Client-side API. To do that you can use this example JavaScript method:

function acceptAllChanges() {
    var editor = $find("<%= RadEditor1.ClientID %>");
    var trackChanges = Telerik.Web.UI.Editor.TrackChanges;

    trackChanges.initialize(editor);
    trackChanges.acceptAllChangesSilently();
}

Note that you should get the correct editor object and pass it as an argument in the initialize() method's overload. 
1 comment
Pankaj
Posted on: 20 Jul 2015 17:41
Hi Team,
Server side accept track changes functionality will be really very helpfull to handle complex scenarios and complex objects .
Because we can not use client side workaround for each and every scenario.

Regards,