Version History
ExamplesEdit a document, undo and redo changes, save in-memory snapshots, preview saved content, and restore any version as one undoable change.
Review changes with keyboard-accessible decisions: accept updates the document, reject keeps the original, and reset starts over.
Change the width and theme, then interact with the components.
Document review
2 pendingAccept a suggestion to update the document, or keep the original. This review uses a local fixture.
0 accepted · 0 kept original · 2 pending
The current draft summarizes why the customer expansion is likely to close this quarter.
Next step: align the ROI paragraph with the updated committee recommendation.
bun add @reopt-ai/opt-editorimport { Editor, createEditorStore, defaultCatalog, diffSpecsDetailed, type EditorSpec } from "@reopt-ai/opt-editor";Edit a document, undo and redo changes, save in-memory snapshots, preview saved content, and restore any version as one undoable change.
Edit headings, paragraphs, and a callout with Editor, defaultCatalog, and an in-memory document store.
Compose a custom authoring surface with BlockTree, BlockToolbar, document versions, and working undo/redo controls.