Vue2Editor 介绍
vue2-editor一款好用的vue图文编辑
注:vue-Editor底层采取的是 quil l.js,而 quil l.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
网站描述: 基于 quil l 的 Vue.js 2.0 富文本编辑器组件
Vue2Editor官方网站
官方网站: https://www.vue2editor.com/
如果觉得 网站内容还不错,欢迎将 网站 推荐给程序员好友。
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://www.haodehen.cn/did175111