Module: @lexical/rich-text
Classes
Type Aliases
HeadingTagType
Ƭ HeadingTagType: "h1"
| "h2"
| "h3"
| "h4"
| "h5"
| "h6"
Defined in
packages/lexical-rich-text/src/index.ts:222
SerializedHeadingNode
Ƭ SerializedHeadingNode: Spread
<{ tag
: "h1"
| "h2"
| "h3"
| "h4"
| "h5"
| "h6"
}, SerializedElementNode
>
Defined in
packages/lexical-rich-text/src/index.ts:105
SerializedQuoteNode
Ƭ SerializedQuoteNode: SerializedElementNode
Defined in
packages/lexical-rich-text/src/index.ts:116
Variables
DRAG_DROP_PASTE
• Const
DRAG_DROP_PASTE: LexicalCommand
<File
[]>
Defined in
packages/lexical-rich-text/src/index.ts:112
Functions
$createHeadingNode
▸ $createHeadingNode(headingTag
): HeadingNode
Parameters
Name | Type |
---|---|
headingTag | HeadingTagType |
Returns
Defined in
packages/lexical-rich-text/src/index.ts:435
$createQuoteNode
▸ $createQuoteNode(): QuoteNode
Returns
Defined in
packages/lexical-rich-text/src/index.ts:212
$isHeadingNode
▸ $isHeadingNode(node
): node is HeadingNode
Parameters
Name | Type |
---|---|
node | undefined | null | LexicalNode |
Returns
node is HeadingNode
Defined in
packages/lexical-rich-text/src/index.ts:439
$isQuoteNode
▸ $isQuoteNode(node
): node is QuoteNode
Parameters
Name | Type |
---|---|
node | undefined | null | LexicalNode |
Returns
node is QuoteNode
Defined in
packages/lexical-rich-text/src/index.ts:216
eventFiles
▸ eventFiles(event
): [boolean
, File
[], boolean
]
Parameters
Name | Type |
---|---|
event | DragEvent | PasteCommandType |
Returns
[boolean
, File
[], boolean
]
Defined in
packages/lexical-rich-text/src/index.ts:489
registerRichText
▸ registerRichText(editor
): () => void
Parameters
Name | Type |
---|---|
editor | LexicalEditor |
Returns
fn
▸ (): void
Returns
void