• vue 实现富文本(quill-editor 插件)


    效果图:

     

     

    命令:

    npm install vue-quill-editor --save

    main.js 中引入

    1. import VueQuillEditor from "vue-quill-editor";
    2. import 'quill/dist/quill.core.css';
    3. import 'quill/dist/quill.snow.css';
    4. import 'quill/dist/quill.bubble.css';
    5. Vue.use(VueQuillEditor)

    vue template (html代码)

    1. <template>
    2. <div>
    3. <quill-editor
    4. class="editor"
    5. v-model="formData.contentData"
    6. :options="editorOption"
    7. @change="onEditorChange($event)"
    8. >
    9. <el-input type="textarea" auto-complete="off" :disabled="isChange">
    10. el-input>
    11. quill-editor>
    12. div>
    13. template>

    script 代码

    具体一些属性配置可以参考 https://www.jianshu.com/p/efcedcabb192

  • 相关阅读:
    个人申请软著需要具备什么
    UPC-E条码的介绍及制作方法
    大模型从入门到应用——LangChain:代理(Agents)-[代理执行器(Agent Executor):处理解析错误、访问中间步骤和限制最大迭代次数]
    uni-app 开发调试自动打开手机屏幕大小界面(Aidex移动端开发项目)
    Linux 回收内存到底怎么计算anon/file回收比例,只是swappiness这么简单?
    k8s中使用prometheus operator监控外部服务器部署的windows exporter
    RabbitMq(一)
    【软件测试】不想变成打螺丝的测试打工人,自我改变提升自动化测试......
    nablet Elements released处理视频的组件
    shardingJdbc分库分表实战
  • 原文地址:https://blog.csdn.net/qq_45444035/article/details/127860117