Class: DecoratorNode<T>
lexical/src.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
Parameters
Name | Type |
---|---|
editor | LexicalEditor |
config | EditorConfig |
Returns
T
Defined in
lexical/src/nodes/LexicalDecoratorNode.ts:23
isIsolated
▸ isIsolated(): boolean
Returns
boolean
Defined in
lexical/src/nodes/LexicalDecoratorNode.ts:27
isTopLevel
▸ isTopLevel(): boolean
Returns
boolean
Defined in
lexical/src/nodes/LexicalDecoratorNode.ts:31