Module: lexical-link/src
Classes
Type Aliases
SerializedAutoLinkNode
Ƭ SerializedAutoLinkNode: Spread
<{ type
: "autolink"
; version
: 1
}, SerializedLinkNode
>
Defined in
lexical-link/src/index.ts:265
SerializedLinkNode
Ƭ SerializedLinkNode: Spread
<{ rel?
: null
| string
; target?
: null
| string
; type
: "link"
; url
: string
; version
: 1
}, SerializedElementNode
>
Defined in
lexical-link/src/index.ts:39
Variables
TOGGLE_LINK_COMMAND
• Const
TOGGLE_LINK_COMMAND: LexicalCommand
<string
| { rel?
: string
; target?
: string
; url
: string
} | null
>
Defined in
lexical-link/src/index.ts:342
Functions
$createAutoLinkNode
▸ $createAutoLinkNode(url
, attributes?
): AutoLinkNode
Parameters
Name | Type |
---|---|
url | string |
attributes? | Object |
attributes.rel? | null | string |
attributes.target? | null | string |
Returns
Defined in
lexical-link/src/index.ts:326
$createLinkNode
▸ $createLinkNode(url
, attributes?
): LinkNode
Parameters
Name | Type |
---|---|
url | string |
attributes? | Object |
attributes.rel? | null | string |
attributes.target? | null | string |
Returns
Defined in
lexical-link/src/index.ts:249
$isAutoLinkNode
▸ $isAutoLinkNode(node
): node is AutoLinkNode
Parameters
Name | Type |
---|---|
node | undefined | null | LexicalNode |
Returns
node is AutoLinkNode
Defined in
lexical-link/src/index.ts:336
$isLinkNode
▸ $isLinkNode(node
): node is LinkNode
Parameters
Name | Type |
---|---|
node | undefined | null | LexicalNode |
Returns
node is LinkNode
Defined in
lexical-link/src/index.ts:259
toggleLink
▸ toggleLink(url
, attributes?
): void
Parameters
Name | Type |
---|---|
url | null | string |
attributes | Object |
attributes.rel? | null | string |
attributes.target? | null | string |
Returns
void
Defined in
lexical-link/src/index.ts:352