Module: @lexical/link
Classes
Type Aliases
LinkAttributes
Ƭ LinkAttributes: Object
Type declaration
Name | Type |
---|---|
rel? | null | string |
target? | null | string |
Defined in
lexical-link/src/index.ts:34
SerializedAutoLinkNode
Ƭ SerializedAutoLinkNode: Spread
<{ type
: "autolink"
; version
: 1
}, SerializedLinkNode
>
Defined in
lexical-link/src/index.ts:249
SerializedLinkNode
Ƭ SerializedLinkNode: Spread
<{ type
: "link"
; url
: string
; version
: 1
}, Spread
<LinkAttributes
, SerializedElementNode
>>
Defined in
lexical-link/src/index.ts:39
Variables
TOGGLE_LINK_COMMAND
• Const
TOGGLE_LINK_COMMAND: LexicalCommand
<string
| { url
: string
} & LinkAttributes
| null
>
Defined in
lexical-link/src/index.ts:318
Functions
$createAutoLinkNode
▸ $createAutoLinkNode(url
, attributes?
): AutoLinkNode
Parameters
Name | Type |
---|---|
url | string |
attributes? | LinkAttributes |
Returns
Defined in
lexical-link/src/index.ts:305
$createLinkNode
▸ $createLinkNode(url
, attributes?
): LinkNode
Parameters
Name | Type |
---|---|
url | string |
attributes? | LinkAttributes |
Returns
Defined in
lexical-link/src/index.ts:236
$isAutoLinkNode
▸ $isAutoLinkNode(node
): node is AutoLinkNode
Parameters
Name | Type |
---|---|
node | undefined | null | LexicalNode |
Returns
node is AutoLinkNode
Defined in
lexical-link/src/index.ts:312
$isLinkNode
▸ $isLinkNode(node
): node is LinkNode
Parameters
Name | Type |
---|---|
node | undefined | null | LexicalNode |
Returns
node is LinkNode
Defined in
lexical-link/src/index.ts:243
toggleLink
▸ toggleLink(url
, attributes?
): void
Parameters
Name | Type |
---|---|
url | null | string |
attributes | LinkAttributes |
Returns
void
Defined in
lexical-link/src/index.ts:322