Skip to content

DirectiveDescriptor

reference
1 min readUpdated

Kind: Interface

Source: atloria-monorepo/packages/editor/src/plugins/directives/index.ts

Implement this interface to create a custom editor for markdown directives. Pass the object in the directivesPlugin parameters.

Properties

PropertyType
namestring
attributesstring[]
hasChildrenboolean
type`'leafDirective'
EditorReact.ComponentType<DirectiveEditorProps<T>>

Was this page helpful?

Download as PDF