tuil
ReferencePackages@mwillbanks/tuil-editorAPI

RichNodeProvider

interface exported by @mwillbanks/tuil-editor.

View rawEdit

interface

Public interface exported by @mwillbanks/tuil-editor.

export interface RichNodeProvider {
  readonly type: string;
  validate?(node: RichNode): void;
  text?(node: RichNode, children: string): string;
  markdown?(node: RichNode, children: string): string;
}

Members

MemberTypeRequiredDescriptionRelated types
typestringYesThe type member uses the string contract.
validate((node: RichNode) => void) | undefinedNoThe validate member uses the ((node: RichNode) => void) | undefined contract.RichNode
text((node: RichNode, children: string) => string) | undefinedNoThe text member uses the ((node: RichNode, children: string) => string) | undefined contract.RichNode
markdown((node: RichNode, children: string) => string) | undefinedNoThe markdown member uses the ((node: RichNode, children: string) => string) | undefined contract.RichNode

Parameters

This declaration has no public members.

Returns

This declaration does not return a value.

Throws

No thrown errors are documented for this declaration.

Source

View the secondary source reference

Package

@mwillbanks/tuil-editor

On this page