Vue2Editor

编程之家收集整理的这个编程导航主要介绍了Vue2Editor编程之家,现在分享给大家,也给大家做个参考。

Vue2Editor

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/

如果觉得编程之家网站内容还不错,欢迎将编程之家网站推荐给程序员好友。

相关文章

scalable.js,一款可以使任何HTML元素动态缩放适合父元素的js...
Pica,使用JS进行快速高品质图像缩放
react-dates,React 日期组件
date-fns,轻量级的JavaScript 日期工具库
WOW.js,一款效果炫酷的元素在页面滚动时展示CSS3动画的JS插件
Pikaday,一个 轻量级、无依耐Js日期选择器