Changelog

Bring your own UI

Use SuperDoc as the document engine behind your own editor interface.

Bring your own UI

superdoc/ui/react extended the headless toolbar idea to the rest of the editor. A SuperDocUIProvider held the instance, and hooks exposed live state for comments, tracked changes, selection, and the document, plus ui.commands.register for application commands. State and commands followed the active surface across body, header, and footer.

ui.selection.capture() returned a snapshot that survived focus moving into a comment composer, so a comment could be created from the captured range rather than the live selection. Turning off the built-in toolbar and comments UI kept comments and tracked changes importing and exporting with the document.

Current guides