React-Quill富文本插件的使用
2017-06-13 本文已影响3765人
默默先生Alec
使用步骤
- 在工程目录下命令行中,执行npm install安装并保存依赖包
npm install react-quill@v1.0.0-rc.2
- 在index.html中引入样式文件
<link rel="stylesheet" type="text/css" href="/css/quill.core.css"> <link rel="stylesheet" type="text/css" href="/css/quill.snow.css">
- 在需要使用的地方引入组件可使用
import ReactQuill from 'react-quill';

工具栏详细配置参考