Skip to content
Document Authoring DA  API Docs v1.22.2
npmGitHub

DocAuthEditorMode

DocAuthEditorMode:

type DocAuthEditorMode =
| "edit"
| "review"
| "view";

The editor interaction mode.

  • edit: every action can run.
  • review: every action can run, and text and formatting changes are recorded as tracked changes.
  • view: only actions whose capabilities are all allowed in view mode can run, such as exports, find, zoom and switching modes.

ActionCapability lists the capabilities and which ones view mode allows. In every mode, an action can still be disabled by its own isEnabled check.