Class: DirectiveNode

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

Hierarchy

  • DecoratorNode<React.JSX.Element>

    DirectiveNode

Table of contents

Constructors

Methods

Constructors

constructor

new DirectiveNode(mdastNode, key?): DirectiveNode

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

Parameters

NameType
mdastNodeDirectives
key?string

Returns

DirectiveNode

Overrides

DecoratorNode&lt;React.JSX.Element&gt;.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

NameType
mdastNodeDirectives

Returns

void