美文网首页
React-Quill富文本插件的使用

React-Quill富文本插件的使用

作者: 默默先生Alec | 来源:发表于2017-06-13 17:32 被阅读3765次

React-Quill 源码

使用步骤

  1. 在工程目录下命令行中,执行npm install安装并保存依赖包
    npm install react-quill@v1.0.0-rc.2
  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">
  3. 在需要使用的地方引入组件可使用
    import ReactQuill from 'react-quill';
![6B9779E1-2235-4229-82F7-CF914F47315D.png](https://img.haomeiwen.com/i1097385/5122b3e8bfdcc24a.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
工具栏详细配置参考

相关文章

网友评论

      本文标题:React-Quill富文本插件的使用

      本文链接:https://www.haomeiwen.com/subject/gcxjqxtx.html