Skip to content

Type Editor


Type Editor / @type-editor/view / EditorView

EditorView

Classes

ClassDescription

EditorView

An editor view manages the DOM structure that represents an editable document. Its state and behavior are determined by its props.

The view is responsible for:

  • Rendering the document state as DOM elements
  • Handling user input and converting it to transactions
  • Managing selections and keeping them in sync with the DOM
  • Coordinating plugin views and custom node views
  • Observing external DOM changes (composition, spellcheck, etc.)