Class: DecoratorNode<T>
lexical.DecoratorNode
Type parameters
Name |
---|
T |
Hierarchy
↳
DecoratorNode
Constructors
constructor
• new DecoratorNode<T
>(key?
)
Type parameters
Name |
---|
T |
Parameters
Name | Type |
---|---|
key? | string |
Overrides
Defined in
lexical/src/nodes/LexicalDecoratorNode.ts:19
Methods
decorate
▸ decorate(editor
, config
): T
The returned value is added to the LexicalEditor._decorators
Parameters
Name | Type |
---|---|
editor | LexicalEditor |
config | EditorConfig |
Returns
T
Defined in
lexical/src/nodes/LexicalDecoratorNode.ts:26
isInline
▸ isInline(): boolean
Returns
boolean
Defined in
lexical/src/nodes/LexicalDecoratorNode.ts:34
isIsolated
▸ isIsolated(): boolean
Returns
boolean
Defined in
lexical/src/nodes/LexicalDecoratorNode.ts:30
isKeyboardSelectable
▸ isKeyboardSelectable(): boolean
Returns
boolean
Defined in
lexical/src/nodes/LexicalDecoratorNode.ts:38