Skip to content

@vttforge/core / TextEditorConfig

Interface: TextEditorConfig ​

Properties ​

engines? ​

optional engines?: Record<string, unknown>


enrichers ​

enrichers: object[]

Inline syntax a package adds, such as @Check[strength].

enricher ​

enricher: (match, options) => Promise<Node | null>

Parameters ​
match ​

RegExpMatchArray

options ​

Record<string, unknown>

Returns ​

Promise<Node | null>

id? ​

optional id?: string

onRender? ​

optional onRender?: (element) => void

Parameters ​
element ​

HTMLElement

Returns ​

void

pattern ​

pattern: RegExp


inserts? ​

optional inserts?: Record<string, unknown>

MIT licensed.