import type { ReactNode } from "react"; import type { MarkdownEditorIcons, MarkdownImageUpload } from "../MarkdownEditor/MarkdownEditor.tsx"; import type { SlotProps } from "../slotProps.ts"; export type MarkdownEditorCodeMirrorProps = SlotProps & { className?: string; /** * **Initial** only, and the same uncontrolled contract as the * sibling `MarkdownEditor` — for the same reason, one layer over: * reassigning the whole document from outside throws away the * undo history that belonged to it. Swap documents with a `key`. */ defaultValue?: string; /** Start in raw-markdown mode. **Initial** only. */ isRawModeDefault?: boolean; icons?: MarkdownEditorIcons; isDisabled?: boolean; isReadOnly?: boolean; /** * The accessible name. Omit it inside a `Field`, which supplies a * real `