Documentation
A DOCX editor for React that reads and writes OOXML directly.
@portone/docx-editor opens a Word document in the browser, lets a person edit it, and writes
the file back out as DOCX.
It reads and writes OOXML directly instead of converting to HTML and back, so text, formatting,
lists, tables, images, links, and content controls are edited in place while the structures around
each edit are preserved.
Anything the editor does not model is written back from its original XML, and a round trip that
cannot be made safely fails with a stable error code rather than returning a damaged document.
Getting started
Install the package, mount the editor, and export the edited document.
Features
What you can edit, what is preserved untouched, and the current limitations.
Custom controls
Commands, queries, presets, and plugins for a toolbar of your own.
Props
Every DocxEditor prop, the imperative handle, and which props are read once.
Styling
The stylesheet, the custom properties you may set, and font fallbacks.
Core API
Programmatic DOCX import and export without mounting an editor.