Module: @lexical/react/LexicalAutoLinkPlugin
Type Aliases
LinkMatcher
Ƭ LinkMatcher: (text
: string
) => LinkMatcherResult
| null
Type declaration
▸ (text
): LinkMatcherResult
| null
Parameters
Name | Type |
---|---|
text | string |
Returns
LinkMatcherResult
| null
Defined in
packages/lexical-react/src/LexicalAutoLinkPlugin.ts:43
Functions
AutoLinkPlugin
▸ AutoLinkPlugin(«destructured»
): JSX.Element
| null
Parameters
Name | Type |
---|---|
«destructured» | Object |
› matchers | LinkMatcher [] |
› onChange? | ChangeHandler |
Returns
JSX.Element
| null
Defined in
packages/lexical-react/src/LexicalAutoLinkPlugin.ts:464
createLinkMatcherWithRegExp
▸ createLinkMatcherWithRegExp(regExp
, urlTransformer?
): (text
: string
) => null
| { index
: number
= match.index; length
: number
; text
: string
; url
: string
}
Parameters
Name | Type |
---|---|
regExp | RegExp |
urlTransformer | (text : string ) => string |
Returns
fn
▸ (text
): null
| { index
: number
= match.index; length
: number
; text
: string
; url
: string
}
Parameters
Name | Type |
---|---|
text | string |
Returns
null
| { index
: number
= match.index; length
: number
; text
: string
; url
: string
}