Class: DirectiveNode

A lexical node that represents an image. Use "$createDirectiveNode" to construct one.

Extends

  • DecoratorNode<React.JSX.Element>

Constructors

new DirectiveNode()

new DirectiveNode(mdastNode, key?): DirectiveNode

Constructs a new DirectiveNode with the specified MDAST directive node as the object to edit.

Parameters

ParameterType
mdastNodeDirectives
key?string

Returns

DirectiveNode

Overrides

DecoratorNode<React.JSX.Element>.constructor

Methods

getMdastNode()

getMdastNode(): Directives

Returns the MDAST node that is being edited.

Returns

Directives


select()

select(): void

Focuses the direcitive editor.

Returns

void


setMdastNode()

setMdastNode(mdastNode): void

Sets a new MDAST node to edit.

Parameters

ParameterType
mdastNodeDirectives

Returns

void