Vue2Editor 介绍
vue2-editor一款好用的vue图文编辑
注:vue-Editor底层采取的是quill.js,而quill.js采用的是html5的新属性classList,所以版本低于ie10会报错“无法获取未定义或 null 引用的属性‘confirm’”
基本用法:
首先,使用npm安装
npm install --save vue2-editor
具体代码:
<template>
<div id="app">
<vue-editor v-model="content"></vue-editor>
</div>
</template>
<script>
import { vueEditor } from 'vue2-editor'
export default {
components: {
vueEditor
},
data() {
return {
content: '<h1>Some initial content</h1>'
}
}
}
</script>
网站地址:https://www.vue2editor.com/
GitHub:https://github.com/davidroyer/vue2-editor
网站描述:基于 quill 的 Vue.js 2.0 富文本编辑器组件
Vue2Editor
官方网站:https://www.vue2editor.com/
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。