Skip to main content
Track Changes records all edits with author attribution and timestamps, matching Microsoft Word’s revision tracking.

Usage

Enable through document mode:
Or toggle programmatically:

Commands

Accept changes

Reject changes

Insert tracked change programmatically

Use insertTrackedChange to add tracked edits from external sources (e.g., AI suggestions):
Parameters:
Object
Object with from, to, text, user, comment, addToHistory, emitCommentEvent

View modes

Helpers

Change types

Each change includes author name, email, timestamp, and a unique ID.

Export behavior

Changes export to DOCX as Word revisions:

Full example

Track Changes Example

Runnable example with mode switching, accept/reject, and comments sidebar

Source code