Activate TrackChanges in WebApp
Posted: Fri Oct 21, 2016 11:39 am
I use Webapp 18.0.6. And I need activate trackchanges depending on my condition. How can I do it?
I tried like this way, but it not work. Button "TrackChanges" pressed but Track Changes doesn't work.
I tried like this way, but it not work. Button "TrackChanges" pressed but Track Changes doesn't work.
Code: Select all
goog.events.listen(window.editor, sync.api.Editor.EventTypes.ACTIONS_LOADED, function(e) {
if(<my condition>){
var trackChangesAction = editor.getActionsManager().getActionById("Author/TrackChanges");
if(trackChangesAction!=null){
trackChangesAction.actionPerformed();
}
}
});