Module: @lexical/react/LexicalAutoEmbedPlugin
Classes
Interfaces
Type Aliases
EmbedMatchResult
Ƭ EmbedMatchResult<TEmbedMatchResult
>: Object
Type parameters
Name | Type |
---|---|
TEmbedMatchResult | unknown |
Type declaration
Name | Type |
---|---|
data? | TEmbedMatchResult |
id | string |
url | string |
Defined in
packages/lexical-react/src/LexicalAutoEmbedPlugin.tsx:36
Variables
INSERT_EMBED_COMMAND
• Const
INSERT_EMBED_COMMAND: LexicalCommand
<EmbedConfig
["type"
]>
Defined in
packages/lexical-react/src/LexicalAutoEmbedPlugin.tsx:59
URL_MATCHER
• Const
URL_MATCHER: RegExp
Defined in
packages/lexical-react/src/LexicalAutoEmbedPlugin.tsx:56
Functions
LexicalAutoEmbedPlugin
▸ LexicalAutoEmbedPlugin<TEmbedConfig
>(«destructured»
): JSX.Element
| null
Type parameters
Name | Type |
---|---|
TEmbedConfig | extends EmbedConfig <unknown , EmbedMatchResult <unknown >> |
Parameters
Name | Type |
---|---|
«destructured» | LexicalAutoEmbedPluginProps <TEmbedConfig > |
Returns
JSX.Element
| null