'Office JavaScript API: track changes

I'm working on a side project using the Microsoft Office JavaScript APIs and have gotten stuck on something I don't see mentioned in the documentation.

Is there any way to determine if a given Range object has been "deleted" with Track Changes enabled? From what I can tell, depending on the version of Word, the deleted range will either be present (i.e. included when iterating over document.body.paragraphs.items) or not.

In my local testing, sometimes Word renders the text in red with strikethrough; but the API doesn't seem to do anything to indicate this on the object. Other times the text is removed altogether, in which case the object isn't there to begin with.

Is there any way to interact with the Track Changes feature via the API?



Solution 1:[1]

There is currently no way to access the Track Changes feature with the Office JavaScript APIs. But it is a good idea and is on our backlog. Please vote for the suggestion at Add change tracking API.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Rick Kirkham