Interface: EmbedConfig<TEmbedMatchResultData, TEmbedMatchResult>
@lexical/react/LexicalAutoEmbedPlugin.EmbedConfig
Type parameters
Name | Type |
---|---|
TEmbedMatchResultData | unknown |
TEmbedMatchResult | EmbedMatchResult <TEmbedMatchResultData > |
Properties
insertNode
• insertNode: (editor
: LexicalEditor
, result
: TEmbedMatchResult
) => void
Type declaration
▸ (editor
, result
): void
Parameters
Name | Type |
---|---|
editor | LexicalEditor |
result | TEmbedMatchResult |
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
Name | Type |
---|---|
text | string |
Returns
null
| TEmbedMatchResult
| Promise
<null
| TEmbedMatchResult
>
Defined in
packages/lexical-react/src/LexicalAutoEmbedPlugin.tsx:49
type
• type: string