Skip to main content

ContentControlCommand

Content controls (w:sdt). insertContentControl wraps the selection: runs of one paragraph become an inline control, whole paragraphs a block one; a collapsed caret gets an empty control showing placeholder text. The other commands name a control by the id contentControls() reports. Legacy form fields (FORMDROPDOWN, FORMCHECKBOX, FORMTEXT) list there too, with legacy set, so one picker serves both generations; only toggleCheckbox and selectListItem accept them. Not exported by name. You get it from the API.

ContentControlInfo

A content control (w:sdt) of the body, in the offset space EditorHost.text uses. Not exported by name. You get it from the API.

ContentControlKind

What a w:sdt is for, read from its w:sdtPr marker; rich text when it carries none. Not exported by name. You get it from the API.

ContentControlLevel

Inline sits among a paragraph’s runs; block wraps paragraphs or tables; row and cell wrap table parts. Not exported by name. You get it from the API.

ControlTable

A table by the bodyIndex and path every one of its cell targets carries. Not exported by name. You get it from the API.

InsertableControlKind

The kinds a new control can take; the rest are read-back detections. Import from @reductoai/docx-editor, @reductoai/docx-editor/model.