Interface: MDXEditorMethods
The interface for the MDXEditor object reference.
Example
const mdxEditorRef = React.useRef<MDXEditorMethods>(null)
<MDXEditor ref={mdxEditorRef} />
Properties
| Property | Type | Description |
|---|---|---|
focus | (callbackFn?: () => void, opts?: object) => void | Sets focus on input |
getMarkdown | () => string | Gets the current markdown value. |
insertMarkdown | (value: string) => void | Inserts markdown at the current cursor position. Use the focus if necessary. |
setMarkdown | (value: string) => void | Updates the markdown value of the editor. |