value | string | The Markdown value |
onChange | (value?: string, event?: React.ChangeEvent<HTMLTextAreaElement>, state?: ContextStore) => void | Event handler for the onChange event |
onHeightChange | (value?: CSSProperties['height'], oldValue?: CSSProperties['height'], state?: ContextStore) => void | Editor height change listener |
onStatistics | (data: Statistics) => void | Callback for editor statistics (length, lineCount) |
autoFocus | ITextAreaProps['autoFocus'] | Whether to focus the editor on initialization (defaults to on) |
autoFocusEnd | boolean | Whether to focus at the end of text on initialization |
height | CSSProperties['height'] | The height of the editor. Note: Dragbar is invalid when using percentage values |
visibleDragbar | boolean | Show drag and drop tool to set editor height |
preview | PreviewType | Show markdown preview (e.g., edit, preview, both) |
fullscreen | boolean | Full screen display editor |
overflow | boolean | Disable fullscreen setting body styles |
maxHeight | number | Maximum drag height (requires visibleDragbar=true) |
minHeight | number | Minimum drag height (requires visibleDragbar=true) |
previewOptions | Omit<MarkdownPreviewProps, 'source'> | Settings for react-markdown preview |
textareaProps | ITextAreaProps | Props passed to the underlying textarea |
components | object | Custom component overrides |
data-color-mode | 'light' | 'dark' | Theme configuration |
highlightEnable | boolean | Disable editing area code highlighting. Setting to false increases editing speed (defaults to true) |
tabSize | number | Number of characters to insert when pressing tab (default 2) |
defaultTabEnable | boolean | If false, the tab key inserts a tab character; if true, it performs default browser behavior |
commands | ICommand[] | Custom or existing commands to include |
commandsFilter | (command: ICommand, isExtra: boolean) => false | ICommand | Filter or modify commands |
extraCommands | ICommand[] | Additional commands to add |
hideToolbar | boolean | Hide the toolbar |
enableScroll | boolean | Whether to enable scrolling |
toolbarBottom | boolean | Position toolbar at the bottom |
direction | CSSProperties['direction'] | Text direction (rtl or ltr) |