Skip to main content

Interface: EmbedConfig<TEmbedMatchResultData, TEmbedMatchResult>

@lexical/react/LexicalAutoEmbedPlugin.EmbedConfig

Type parameters

NameType
TEmbedMatchResultDataunknown
TEmbedMatchResultEmbedMatchResult<TEmbedMatchResultData>

Properties

insertNode

insertNode: (editor: LexicalEditor, result: TEmbedMatchResult) => void

Type declaration

▸ (editor, result): void

Parameters
NameType
editorLexicalEditor
resultTEmbedMatchResult
Returns

void

Defined in

packages/lexical-react/src/LexicalAutoEmbedPlugin.tsx:53


parseUrl

parseUrl: (text: string) => null | TEmbedMatchResult | Promise<null | TEmbedMatchResult>

Type declaration

▸ (text): null | TEmbedMatchResult | Promise<null | TEmbedMatchResult>

Parameters
NameType
textstring
Returns

null | TEmbedMatchResult | Promise<null | TEmbedMatchResult>

Defined in

packages/lexical-react/src/LexicalAutoEmbedPlugin.tsx:49


type

type: string

Defined in

packages/lexical-react/src/LexicalAutoEmbedPlugin.tsx:47