Word-style suggesting mode for humans. Pick an author, turn on Suggesting mode, then type: insertions become underlined spans in the author's color, deletions become strikethrough spans instead of being removed. Every tracked change lands in the shared editor.reviewLedger alongside AI suggestions, so the same drawer can review both.
The plugin intercepts beforeinput events. In suggesting mode, insertions wrap in <span class="rte-tc-insert"> with the author's color; deletions wrap in <span class="rte-tc-delete"> with strikethrough. Consecutive deletes merge into one span; backspacing inside your own just-typed insert shrinks the insert instead of creating a delete mark. Accept / reject unwraps or removes the span and updates the ledger entry.
<richtextbox
name="Draft"
toolbar="default"
enable-tracked-changes="true"
current-user-id="@User.Identity?.Name"
current-user-name="@User.FindFirst(ClaimTypes.GivenName)?.Value"
current-user-color="#2563eb" />
editor.trackedChanges.enable({ id: "alice", name: "Alice Lee", color: "#2563eb" });
editor.trackedChanges.disable();
editor.trackedChanges.accept(entryId);
editor.trackedChanges.reject(entryId);
editor.trackedChanges.acceptAll({ author: "alice" });
editor.trackedChanges.rejectAll({ author: "alice" });
editor.trackedChanges.list();