Skip to main content

Module: @lexical/rich-text

Classes

Type Aliases

HeadingTagType

Ƭ HeadingTagType: "h1" | "h2" | "h3" | "h4" | "h5" | "h6"

Defined in

packages/lexical-rich-text/src/index.ts:211


SerializedHeadingNode

Ƭ SerializedHeadingNode: Spread<{ tag: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" }, SerializedElementNode>

Defined in

packages/lexical-rich-text/src/index.ts:109


SerializedQuoteNode

Ƭ SerializedQuoteNode: SerializedElementNode

Defined in

packages/lexical-rich-text/src/index.ts:120

Variables

DRAG_DROP_PASTE

Const DRAG_DROP_PASTE: LexicalCommand<File[]>

Defined in

packages/lexical-rich-text/src/index.ts:116

Functions

$createHeadingNode

$createHeadingNode(headingTag?): HeadingNode

Parameters

NameTypeDefault value
headingTagHeadingTagType'h1'

Returns

HeadingNode

Defined in

packages/lexical-rich-text/src/index.ts:432


$createQuoteNode

$createQuoteNode(): QuoteNode

Returns

QuoteNode

Defined in

packages/lexical-rich-text/src/index.ts:201


$isHeadingNode

$isHeadingNode(node): node is HeadingNode

Parameters

NameType
nodeundefined | null | LexicalNode

Returns

node is HeadingNode

Defined in

packages/lexical-rich-text/src/index.ts:438


$isQuoteNode

$isQuoteNode(node): node is QuoteNode

Parameters

NameType
nodeundefined | null | LexicalNode

Returns

node is QuoteNode

Defined in

packages/lexical-rich-text/src/index.ts:205


eventFiles

eventFiles(event): [boolean, File[], boolean]

Parameters

NameType
eventDragEvent | PasteCommandType

Returns

[boolean, File[], boolean]

Defined in

packages/lexical-rich-text/src/index.ts:488


registerRichText

registerRichText(editor): () => void

Parameters

NameType
editorLexicalEditor

Returns

fn

▸ (): void

Returns

void

Defined in

packages/lexical-rich-text/src/index.ts:564