ProtectedconstructorEditors are made by Editor.mount.
ReadonlyaccessibilityThe accessibility tree.
ReadonlycatalogEvery command's id, label, group, shortcuts and undo grouping.
ReadonlycommandsEvery edit, one method per command.
ReadonlycontainerThe element the editor was mounted in.
ReadonlydataThe custom XML data parts.
ReadonlydialogsThe dialogs.
ReadonlyelementsElements, with drop targets and hit testing.
ReadonlyexecutionWhere the engine runs.
ReadonlyfindFind and replace.
ReadonlygesturesThe pointer gestures.
ReadonlylistsThe list galleries, and the characters of fonts for a symbol picker.
ReadonlymenusThe context menu.
ReadonlynavigationThe document's headings.
ReadonlyreviewReview, with the markup pane and balloons.
ReadonlyrulerThe rulers: the model, the built-in rulers and the viewport mapping.
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.
ReadonlyviewThe view.
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.
Focuses the editor, keeping the selection. Mounting never takes focus by itself.
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 once the new
document's first frame is drawn (at once while the editor has no size or the page is hidden): until then the
editor shows the old document, so an application can show a loading indicator for as long as this runs. Rejects
with destroyed when the editor is destroyed first.
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: SessionOptionsStaticmountMounts an editor in container, which must be empty of other editors. Resolves when it accepts commands.
An editor mounted in a page: it owns input, rendering, scrolling and its DOM inside the container.