@wangeditor/editor-for-react
Version:
wangEditor component for React
20 lines (19 loc) • 615 B
TypeScript
/**
* @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;