Skip to main content

Module: @lexical/link

Classes

Type Aliases

LinkAttributes

Ƭ LinkAttributes: Object

Type declaration

NameType
rel?null | string
target?null | string

Defined in

lexical-link/src/index.ts:33


SerializedAutoLinkNode

Ƭ SerializedAutoLinkNode: Spread<{ type: "autolink" ; version: 1 }, SerializedLinkNode>

Defined in

lexical-link/src/index.ts:255


SerializedLinkNode

Ƭ SerializedLinkNode: Spread<{ type: "link" ; url: string ; version: 1 }, Spread<LinkAttributes, SerializedElementNode>>

Defined in

lexical-link/src/index.ts:38

Variables

Const TOGGLE_LINK_COMMAND: LexicalCommand<string | { url: string } & LinkAttributes | null>

Defined in

lexical-link/src/index.ts:329

Functions

$createAutoLinkNode

$createAutoLinkNode(url, attributes?): AutoLinkNode

Parameters

NameType
urlstring
attributes?LinkAttributes

Returns

AutoLinkNode

Defined in

lexical-link/src/index.ts:316


$createLinkNode

$createLinkNode(url, attributes?): LinkNode

Parameters

NameType
urlstring
attributes?LinkAttributes

Returns

LinkNode

Defined in

lexical-link/src/index.ts:242


$isAutoLinkNode

$isAutoLinkNode(node): node is AutoLinkNode

Parameters

NameType
nodeundefined | null | LexicalNode

Returns

node is AutoLinkNode

Defined in

lexical-link/src/index.ts:323


$isLinkNode

$isLinkNode(node): node is LinkNode

Parameters

NameType
nodeundefined | null | LexicalNode

Returns

node is LinkNode

Defined in

lexical-link/src/index.ts:249


toggleLink(url, attributes?): void

Parameters

NameType
urlnull | string
attributesLinkAttributes

Returns

void

Defined in

lexical-link/src/index.ts:333