Skip to main content
The batteries-included editor. Guide: Editor.

mountDocxEditor()

Import from @reductoai/docx-editor.

DocxEditorOptions

Import from @reductoai/docx-editor.

DocxEditorSlots

The regions a host can take over. Absent: the built-in; null: nothing; a slot: the host’s own markup in the built-in’s place. The host element is display: contents, so what a slot appends sits in the editor’s grid as the built-in would. Import from @reductoai/docx-editor.

EditorSlot

Fills a region the editor reserves; returns the cleanup to run when the region unmounts. Import from @reductoai/docx-editor.

DocxEditorHandle

Import from @reductoai/docx-editor.

downloadDocx()

Download the current edit state as a .docx file. Import from @reductoai/docx-editor, @reductoai/docx-editor/model.

downloadPdf()

Render the current layout and download it as a PDF. Import from @reductoai/docx-editor, @reductoai/docx-editor/model.

downloadBytes()

Trigger a browser download for bytes, named filename. Import from @reductoai/docx-editor, @reductoai/docx-editor/model.

DEFAULT_FONTS_URL

The published @reductoai/portable-fonts files on the npm CDN; the default when a host serves none. Import from @reductoai/docx-editor, @reductoai/docx-editor/model.