Skip to main content
Guides: Redlining, Comments, Compare documents.

Comment

Not exported by name. You get it from the API.

Comment properties

Comment.delete()

Comment.getRange()

Comment.reply()

Comment.set()

CommentReply

Not exported by name. You get it from the API.

CommentReply properties

CommentReply.delete()

CommentReply.set()

Revision

Not exported by name. You get it from the API.

Revision properties

Revision.accept()

Revision.getNext()

Revision.getNextOrNullObject()

Revision.getRange()

The text this revision covers. A body DELETION reads the struck text: the paragraph’s own offsets are the final view and skip w:delText, so the range is addressed by the w:del element instead — which is also what lets a comment anchor around it. An INSERTION another author has since struck carries the same problem inside itself, so it is addressed by its w:ins the same way: the range stays over the insertion’s own words instead of sliding onto the runs after it. Revisions in other stories refuse by naming their story: a header or note handle owns those ranges.

Revision.reject()

Revision.set()

TrackedChange

Not exported by name. You get it from the API.

TrackedChange properties

TrackedChange.accept()

TrackedChange.getNext()

TrackedChange.getNextOrNullObject()

TrackedChange.getRange()

The text this revision covers. A body DELETION reads the struck text: the paragraph’s own offsets are the final view and skip w:delText, so the range is addressed by the w:del element instead — which is also what lets a comment anchor around it. An INSERTION another author has since struck carries the same problem inside itself, so it is addressed by its w:ins the same way: the range stays over the insertion’s own words instead of sliding onto the runs after it. Revisions in other stories refuse by naming their story: a header or note handle owns those ranges.

TrackedChange.reject()

compareDocuments()

Word’s Compare: revised with every difference from original written in as tracked changes, so Accept All gives revised and Reject All original. Pending revisions on either side are accepted first, as Word does. Import from @reductoai/docx/node, @reductoai/docx/officejs.

CompareOptions

Import from @reductoai/docx-editor, @reductoai/docx-editor/model, @reductoai/docx/node, @reductoai/docx/officejs.