Word add-in — Paragraph.text includes text deleted in tracked changesgotchas / graphIn a document with tracked changes, Word's Paragraph.text also returns runs marked as deleted, so an AI or diff working from it sees both versions; read getReviewedText('Current') (WordApi 1.4) instead and trim the…
Word add-in — rewriting a paragraph drops bold, italics and links inside itgotchas / graphParagraph.insertText(text, 'Replace') keeps the paragraph style but writes plain runs, so bold passages, italics and hyperlinks inside the paragraph are lost (for example in a translation); read the inline formatting…
Word add-in — undoing your own tracked changes when TrackedChange has no idgotchas / graphCtrl+Z after a multi-batch Word add-in write needs several presses and works only with the cursor in the document text; to offer your own Undo, snapshot body.getTrackedChanges() before and after and identify changes by…