1.引用quill

<script src="/lib/quill/quill.min.js"></script>
<link href="/lib/quill/quill.snow.css" rel="stylesheet" />

2.RichEditorDemo.vue

<template><div class="yh-page"><h1>富文本编辑器演示</h1><div class="desc">Demo源代码:<code>/examples/components/modules/RichEditorDemo.vue</code></div><div class="yh-block"><el-row><el-col :span="13"><div id="editor" style="height:300px"></div><div style="margin-top:15px;text-align:center"><yh-button @click="onSave">保存</yh-button></div></el-col><el-col :span="11"><div id="re-content" style="background-color:#fefefe;height:300px;width:100%;padding:8px"></div></el-col></el-row></div><div class="yh-desc yh-block"><h2>引用quill</h2><pre>&lt;script src=&quot;/lib/quill/quill.min.js&quot;&gt;&lt;/script&gt;
&lt;link href=&quot;/lib/quill/quill.snow.css&quot; rel=&quot;stylesheet&quot; /&gt;</pre></div></div>
</template>
<script>
import yhbutton from "../comcompont/Button";
export default {name: "RichEditorDemo",data() {return {};},methods: {onSave() {var delta = this.$quill.getContents();console.log("delta " + JSON.stringify(delta));var html = this.$quill.root.innerHTML;$("#re-content").html(html);}},mounted() {var quill = new Quill("#editor", {modules: {toolbar: [[{ header: [1, 2, false] }],["bold", "italic", "underline"],[{ color: [] }, { background: [] }],[{ font: [] }],[{ align: [] }],["image", "link"]]},theme: "snow"});this.$quill = quill;},components: {"yh-button": yhbutton,}
};
</script><!-- Add "scoped" attribute to limit CSS to this component only -->
<style scope>
</style>

vue富文本编辑器组件相关推荐

  1. vue中使用kindeditor编辑器_vue富文本编辑器组件vue-quill-edit使用教程

    这篇文章主要为大家详细介绍了vue富文本编辑器组件vue-quill-edit使用教程,具有一定的参考价值,可以用来参考一下. 感兴趣的小伙伴,下面一起跟随512笔记的小编两巴掌来看看吧! 之前使用的 ...

  2. tui-editor富文本编辑器组件

    tui-editor富文本编辑器 记录项目中使用富文本编辑器 安装 npm init & npm install --save tui-editor 创建组件文档 tuieditor 在 de ...

  3. Vue 富文本编辑器插件 vue-quill-editor 坑!

    Vue3 + vue-quill-editor 安装步骤: vue3 安装vue-quill-editor npm install @vueup/vue-quill vue2 安装vue-quill- ...

  4. 原生手写富文本编辑器组件

    H5富文本编辑器原理解析: 核心属性: 1.contentEditable="true"; //属性规定是否可编辑元素的内容 2.window.document.designMod ...

  5. 小程序editor 富文本编辑器组件

    效果: 关于editor 富文本编辑器组件 复制到组件common 里面.json 引用即可 链接:https://pan.baidu.com/s/1_QIp28IOVuyVFfKfFZwxKQ 提取 ...

  6. 微信小程序 富文本编辑器组件 editor

    微信小程序 富文本编辑器组件 editor <view class="container"><view class="titlebox"> ...

  7. vue富文本编辑器 Vue-Quill-Editor

    主流富文本编辑器对比 前言:vue中很多项目都需要用到富文本编辑器,在使用了ueditor和tinymce后,发现并不理想.所以果断使用vue-quill-editor来实现. wangEditor( ...

  8. uniapp微信小程序富文本编辑器组件

    前言 最近需要实现一个微信小程序的富文本编辑器,由于使用的是uniapp框架开发的小程序,因此就改造了一下微信小程序官方案例,并封装成了一个组件. uniapp-editor gitee仓库 实现效果 ...

  9. Element Tiptap Editor - 免费开源的 Vue 富文本编辑器,专门为搭配 Element UI 使用优化,使用很简单

    一款很容易上手配置的富文本编辑器,和 Element plus 一起使用效果非常好,还能自定义功能. 关于 Element Tiptap Editor Element Tiptap Editor 是一 ...

  10. Vue富文本编辑器vue-quill-editor-使用-bug问题-教程

    vue-quill-editor npm install vue-quill-editor –save or yarn add vue-quill-editor 文件中使用 <template& ...

最新文章

  1. ElasticSearch优化系列一:集群节点规划
  2. listview winfrom 表头_winform ListView点击行表头,排序
  3. Varnish的相关知识,varnish的简单应用
  4. K8s入门教程|这个给集群搞硬装的才是幕后英雄
  5. tkinter事件机制
  6. C语言函数名以及取地址的区别和联系
  7. ALERT日志中常见监听错误:ORA-3136错误的排查
  8. 网络战争阴影临近,伊朗核设施受攻击
  9. java压缩单个文件
  10. 多线程之volatile关键字
  11. vscode可以配置哪些编程语言_vscode支持哪些编程语言
  12. mybatis基础(下)
  13. 云测试平台推荐与简单比较
  14. 菠萝V1一经问世将会掀起怎样的惊涛骇浪?
  15. 使用 Learner Lab - 使用 Lambda 转换图片为 base64 格式
  16. 越来越卷,教你使用Python实现卷积神经网络(CNN)
  17. 华为云迁移工具推荐最佳实践:Xen虚拟化迁移到华为云
  18. 清华大学计算机系2015分数线,清华大学2015年计算机系GCT成绩复试分数线及复试安排...
  19. 最小化安装 Rocky Linux(CentOS的传承,同创始人发起)
  20. Excel使用技巧系列之一,职场办公事半功倍

热门文章

  1. buildroot external-toolchain的一次踩坑经历
  2. 计算机广告制作教程,Photoshop实例教程:制作网站横条广告
  3. 在西安参加Java培训该怎么学习?
  4. ua解析接口_蓝奏云直链解析API
  5. ubuntu linux 批量删除文件
  6. 运维工程师面试题及答案(网络运维工程师面试题)
  7. 【ubuntu如何录制gif图】
  8. Ghrome浏览器安装IE TAB插件的方法
  9. 如何自学html5 web前端工程师培训视频教程
  10. Text Scanner for Mac(超快速ocr文字识别软件)