Trevixal API
    Preparing search index...

    Class NodeType

    Index
    inlineContent: boolean = false

    Whether this node's content expression admits inline children.

    name: string
    schema: Schema
    spec: NodeSpec
    • get allowsEmptyContent(): boolean

      True when this type can hold an empty fragment as content.

      Returns boolean

    • get groups(): readonly string[]

      Returns readonly string[]

    • get isAtom(): boolean

      Returns boolean

    • get isInline(): boolean

      Returns boolean

    • get isText(): boolean

      Returns boolean

    • Parameters

      Returns boolean

    • Parameters

      • Optionalattrs: Readonly<Record<string, unknown>>
      • content: Fragment = Fragment.empty
      • marks: readonly Mark[] = noMarks

      Returns EditorNode

    • Like create but validates the content against this type's expression.

      Parameters

      • Optionalattrs: Readonly<Record<string, unknown>>
      • content: Fragment = Fragment.empty
      • marks: readonly Mark[] = noMarks

      Returns EditorNode

    • Internal

      Resolve content expression and mark rules; called once by Schema.

      Parameters

      • resolveName: (name: string) => readonly string[]

      Returns void

    • Parameters

      Returns boolean