Skip to main content

Class: QuoteNode

@lexical/rich-text.QuoteNode

Hierarchy

Constructors

constructor

new QuoteNode(key?): QuoteNode

Parameters

NameType
key?string

Returns

QuoteNode

Overrides

ElementNode.constructor

Defined in

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

Methods

collapseAtStart

collapseAtStart(): true

Returns

true

Overrides

ElementNode.collapseAtStart

Defined in

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


createDOM

createDOM(config): HTMLElement

Parameters

NameType
configEditorConfig

Returns

HTMLElement

Overrides

ElementNode.createDOM

Defined in

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


exportDOM

exportDOM(editor): DOMExportOutput

Parameters

NameType
editorLexicalEditor

Returns

DOMExportOutput

Overrides

ElementNode.exportDOM

Defined in

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


exportJSON

exportJSON(): SerializedElementNode

Controls how the this node is serialized to JSON. This is important for copy and paste between Lexical editors sharing the same namespace. It's also important if you're serializing to JSON for persistent storage somewhere. See Serialization & Deserialization.

Returns

SerializedElementNode

Overrides

ElementNode.exportJSON

Defined in

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


insertNewAfter

insertNewAfter(_, restoreSelection?): ParagraphNode

Parameters

NameType
_RangeSelection
restoreSelection?boolean

Returns

ParagraphNode

Overrides

ElementNode.insertNewAfter

Defined in

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


updateDOM

updateDOM(prevNode, dom): boolean

Parameters

NameType
prevNodeQuoteNode
domHTMLElement

Returns

boolean

Overrides

ElementNode.updateDOM

Defined in

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


clone

clone(node): QuoteNode

Parameters

NameType
nodeQuoteNode

Returns

QuoteNode

Overrides

ElementNode.clone

Defined in

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


getType

getType(): string

Returns

string

Overrides

ElementNode.getType

Defined in

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


importDOM

importDOM(): null | DOMConversionMap

Returns

null | DOMConversionMap

Overrides

ElementNode.importDOM

Defined in

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


importJSON

importJSON(serializedNode): QuoteNode

Parameters

NameType
serializedNodeSerializedQuoteNode

Returns

QuoteNode

Overrides

ElementNode.importJSON

Defined in

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