Interface: MDXEditorMethods

The interface for the MDXEditor object reference.

Example

 const mdxEditorRef = React.useRef<MDXEditorMethods>(null)
 <MDXEditor ref={mdxEditorRef} />

Properties

PropertyTypeDescription
focus(callbackFn?: () => void, opts?: object) => voidSets focus on input
getMarkdown() => stringGets the current markdown value.
insertMarkdown(value: string) => voidInserts markdown at the current cursor position. Use the focus if necessary.
setMarkdown(value: string) => voidUpdates the markdown value of the editor.