UNPKG

@wangeditor/editor-for-react

Version:
20 lines (19 loc) 615 B
/** * @description editor react component * @author wangfupeng */ import React from 'react'; import { SlateDescendant, IEditorConfig, IDomEditor } from '@wangeditor/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>): JSX.Element; export default EditorComponent;