UNPKG

dmeditor

Version:

dmeditor is a block-style visual editor. Data is in json format.

14 lines (13 loc) 510 B
import { FocusEventHandler } from 'react'; import { type Descendant } from 'slate'; import { type DME } from '../../types'; export interface MiniRichTextProps { placeHolder?: string; mode?: DME.WidgetRenderProps['mode']; value?: Array<Descendant> | null; useEffectToUpdate?: boolean; onFocus?: FocusEventHandler; onValueChange?: (value: Descendant[]) => void; } declare const MiniRichText: (props: MiniRichTextProps) => import("react/jsx-runtime").JSX.Element; export { MiniRichText };