Trevixal API
    Preparing search index...

    Class EditorState

    Immutable editor state: the document, selection and stored marks. The DOM is never the source of truth, this is.

    Index
    schema: Schema
    selection: Selection
    storedMarks: readonly Mark[] | null
    • get tr(): Transaction

      Start building a transaction from this state.

      Returns Transaction

    • Returns { doc: NodeJSON; selection: unknown }