Trevixal API
    Preparing search index...

    Class EditorNode

    A node in the document tree. Immutable. All "mutators" return new nodes. Text lives in the TextNode subclass.

    Hierarchy (View Summary)

    Index
    attrs: Attrs = emptyAttrs
    content: Fragment = Fragment.empty
    marks: readonly Mark[] = noMarks
    type: NodeType
    • get childCount(): number

      Returns number

    • get isAtom(): boolean

      True when this node has no editable content of its own (image, hr, …).

      Returns boolean

    • get isBlock(): boolean

      Returns boolean

    • get isInline(): boolean

      Returns boolean

    • get isText(): boolean

      Returns boolean

    • get isTextblock(): boolean

      True when this node directly contains inline content (paragraph, heading, …).

      Returns boolean

    • get textContent(): string

      Returns string

    • Parameters

      • index: number

      Returns EditorNode

    • Parameters

      Returns boolean

    • Returns NodeJSON

    • Parameters

      • marks: readonly Mark[]

      Returns EditorNode