MDXEditorMethods interface
The interface for the MDXEditor object reference.
Signature:
export interface MDXEditorMethods
Example
const mdxEditorRef = React.useRef<MDXEditorMethods>(null)
<MDXEditor ref={mdxEditorRef} />
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
focus | (callbackFn?: (() => void) | undefined, opts?: { defaultSelection?: 'rootStart' | 'rootEnd'; preventScroll?: boolean; }) => void | Sets focus on input | |
getMarkdown | () => string | Gets the current markdown value. | |
setMarkdown | (value: string) => void | Updates the markdown value of the editor. |