Interface: DirectiveEditorProps<T>

The properties passed to the DirectiveDescriptor.Editor component.

Type parameters

NameType
Textends Directives = Directives

Table of contents

Properties

Properties

descriptor

descriptor: DirectiveDescriptor<Directives>

The descriptor that activated the editor


lexicalNode

lexicalNode: DirectiveNode

The Lexical directive node.


mdastNode

mdastNode: T

The mdast directive node.


parentEditor

parentEditor: LexicalEditor

The parent lexical editor - use this if you are dealing with the Lexical APIs.