ProtectedconstructorEditors are made by HeadlessEditor.create and Editor.mount.
ReadonlyaccessibilityThe accessibility tree.
ReadonlycatalogEvery command's id, label, group, shortcuts and undo grouping.
ReadonlycommandsEvery edit, one method per command.
ReadonlydataThe custom XML data parts.
ReadonlydialogsThe dialogs.
ReadonlyelementsThe merge designer's elements.
ReadonlyfindFind and replace.
ReadonlylistsThe list galleries, and the characters of fonts for a symbol picker.
ReadonlymenusThe context menu.
ReadonlynavigationThe document's headings.
ReadonlyreviewTracked changes and comments.
ReadonlyrulerThe ruler model.
ReadonlyshapeWord's Insert > Shapes gallery: its groups and their presets, in order.
ReadonlyshortcutsKeyboard shortcuts.
ReadonlyspellingSpell checking.
ReadonlystylesThe document's styles.
ReadonlysubThe template's sub-templates, and editing one in this editor.
Runs several commands atomically: one transaction and one undo step, or nothing when one fails.
Optionaloptions: { label?: string }Releases the editor. Idempotent; later calls reject destroyed.
The document's properties (core, extended and custom) and variables.
Exports the document as DOCX or PDF, with the revision it captures: the whole document, template and every
sub-template, whether or not a sub-template is being edited. A PDF can take an open password and keywords; an
empty password rejects with invalid-argument.
The latest state snapshot: synchronous and immutable.
Replaces the document with a blank one.
Listens to an event. Returns the unsubscribe function.
Replaces the document, only after it was read successfully. Resolves with the read's warnings.
Optionaloptions: { signal?: AbortSignal }Switches between editing and design mode.
Makes the editor read only, or editable again, without reopening.
Calls listener with the current state now, then after every change. Returns the unsubscribe function.
Counts words, characters, paragraphs, lines and pages.
StaticcreateCreates a session with a blank document.
Optionaloptions: SessionOptions
A session with no DOM: Node, workers, tests and servers.