Class: QuoteNode
@lexical/rich-text.QuoteNode
Hierarchy
-
↳
QuoteNode
Constructors
constructor
• new QuoteNode(key?
): QuoteNode
Parameters
Name | Type |
---|---|
key? | string |
Returns
Overrides
Defined in
packages/lexical-rich-text/src/index.ts:127
Methods
collapseAtStart
▸ collapseAtStart(): true
Returns
true
Overrides
Defined in
packages/lexical-rich-text/src/index.ts:198
createDOM
▸ createDOM(config
): HTMLElement
Parameters
Name | Type |
---|---|
config | EditorConfig |
Returns
HTMLElement
Overrides
ElementNode.createDOM
Defined in
packages/lexical-rich-text/src/index.ts:133
exportDOM
▸ exportDOM(editor
): DOMExportOutput
Parameters
Name | Type |
---|---|
editor | LexicalEditor |
Returns
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
Overrides
Defined in
packages/lexical-rich-text/src/index.ts:181
insertNewAfter
▸ insertNewAfter(_
, restoreSelection?
): ParagraphNode
Parameters
Name | Type |
---|---|
_ | RangeSelection |
restoreSelection? | boolean |
Returns
Overrides
Defined in
packages/lexical-rich-text/src/index.ts:190
updateDOM
▸ updateDOM(prevNode
, dom
): boolean
Parameters
Name | Type |
---|---|
prevNode | QuoteNode |
dom | HTMLElement |
Returns
boolean
Overrides
ElementNode.updateDOM
Defined in
packages/lexical-rich-text/src/index.ts:138
clone
▸ clone(node
): QuoteNode
Parameters
Name | Type |
---|---|
node | QuoteNode |
Returns
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
Name | Type |
---|---|
serializedNode | SerializedQuoteNode |
Returns
Overrides
ElementNode.importJSON