rich-editor 基于 React 的富文本编辑器
更新日志
安装
npm install @hife/rich-editor
or
yarn add @hife/rich-editor
使用
import RichEditor from '@hife/rich-editor';
import '@hife/rich-editor/styles/rich-editor.css';
const App = () => {
return <RichEditor
defaultValue={value}
max={100}
onChange={(html: string, text: string) => saveValue(html)}
/>;
};
export default App;