Class: DecoratorBlockNode
@lexical/react/LexicalDecoratorBlockNode.DecoratorBlockNode
Hierarchy
-
DecoratorNode
<JSX.Element
>↳
DecoratorBlockNode
Constructors
constructor
• new DecoratorBlockNode(format?
, key?
): DecoratorBlockNode
Parameters
Name | Type |
---|---|
format? | ElementFormatType |
key? | string |
Returns
Overrides
Defined in
packages/lexical-react/src/LexicalDecoratorBlockNode.ts:29
Properties
__format
• __format: ElementFormatType
Defined in
packages/lexical-react/src/LexicalDecoratorBlockNode.ts:27
constructor
• constructor: KlassConstructor
<typeof DecoratorNode
>
Inherited from
DecoratorNode.constructor
Defined in
packages/lexical/src/nodes/LexicalDecoratorNode.ts:19
Methods
createDOM
▸ createDOM(): HTMLElement
Returns
HTMLElement
Overrides
DecoratorNode.createDOM
Defined in
packages/lexical-react/src/LexicalDecoratorBlockNode.ts:42
decorate
▸ decorate(editor
, config
): Element
The returned value is added to the LexicalEditor._decorators
Parameters
Name | Type |
---|---|
editor | LexicalEditor |
config | EditorConfig |
Returns
Element
Inherited from
Defined in
packages/lexical/src/nodes/LexicalDecoratorNode.ts:27
exportJSON
▸ exportJSON(): SerializedDecoratorBlockNode
Returns
Overrides
DecoratorNode.exportJSON
Defined in
packages/lexical-react/src/LexicalDecoratorBlockNode.ts:34
isInline
▸ isInline(): false
Returns
false
Overrides
Defined in
packages/lexical-react/src/LexicalDecoratorBlockNode.ts:55
isIsolated
▸ isIsolated(): boolean
Returns
boolean
Inherited from
Defined in
packages/lexical/src/nodes/LexicalDecoratorNode.ts:31
isKeyboardSelectable
▸ isKeyboardSelectable(): boolean
Returns
boolean
Inherited from
DecoratorNode.isKeyboardSelectable
Defined in
packages/lexical/src/nodes/LexicalDecoratorNode.ts:39
setFormat
▸ setFormat(format
): void
Parameters
Name | Type |
---|---|
format | ElementFormatType |
Returns
void
Defined in
packages/lexical-react/src/LexicalDecoratorBlockNode.ts:50
updateDOM
▸ updateDOM(): false
Returns
false
Overrides
DecoratorNode.updateDOM