Skip to content

API reference / @docmentis/udoc-editor / EditorMode

Type Alias: EditorMode ​

ts
type EditorMode = "view" | "edit";

The editor's top-level mode — what the user is doing to the document. Mode scopes which commands the toolbar offers and how the pointer behaves; it is usually fixed by the host before the editor is shown.

  • view — reading: navigation, filling in a form, and a PDF's annotations (its Annotate tab).
  • edit — full content authoring (Office "select + insert" model).