UNPKG

@wangeditor-next/editor-for-react

Version:
20 lines (19 loc) 626 B
/** * @description editor react component * @author wangfupeng */ import React from 'react'; import { SlateDescendant, IEditorConfig, IDomEditor } from '@wangeditor-next/editor'; interface IProps { defaultContent?: SlateDescendant[]; onCreated?: (editor: IDomEditor) => void; defaultHtml?: string; value?: string; onChange: (editor: IDomEditor) => void; defaultConfig: Partial<IEditorConfig>; mode?: string; style?: React.CSSProperties; className?: string; } declare function EditorComponent(props: Partial<IProps>): React.JSX.Element; export default EditorComponent;