Trevixal API
    Preparing search index...

    Class TextNode

    A run of text with a uniform mark set.

    Hierarchy (View Summary)

    Index
    attrs: Attrs = emptyAttrs
    content: Fragment = Fragment.empty
    marks: readonly Mark[] = noMarks
    text: string
    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

      • from: number
      • to: number = ...

      Returns TextNode

    • Parameters

      • text: string

      Returns TextNode