DirectiveEditorProps interface
The properties passed to the DirectiveDescriptor.Editor component.
Signature:
export interface DirectiveEditorProps<T extends Directive = Directive>
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
descriptor | DirectiveDescriptor | The descriptor that activated the editor | |
lexicalNode | DirectiveNode | The Lexical directive node. | |
mdastNode | T | The mdast directive node. | |
parentEditor | LexicalEditor | The parent lexical editor - use this if you are dealing with the Lexical APIs. |