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?
There is currently no way to access the Track Changes feature with the Office JavaScript APIs. But it is a good idea, so please raise it at M365 Dev Platform Ideas. First search to see if someone has already made this suggestion.