代码拉取完成,页面将自动刷新
npm i ke-ueditor
or
yarn add ke-ueditor
<template>
<div>
<u-editor v-model="content" :ueditor="`${process.env.BASE_URL}static/ueditor/`"></u-editor>
<!--
需要注意的是v-model与ueditor必须传入
v-model 绑定为数据
ueditor 为ueditor的目录,只需要目录,不需要文件
jquery 可留空,留空时使用bootcdn的jquery,传入false则不会加载jquery,需要自己全局加载
upload-image 图片上传方法
options 初始化选项,具体请查看ueditor官方文档
toolbar 工具栏图标,具体请查看ueditor官方文档
-->
</div>
</template>
<script>
import UEditor from 'ke-ueditor/lib/editor'
export default {
components: { UEditor },
data () {
return {
content: 'Hello Ueditor'
}
}
}
</script>
觉得好用的点个赞喔
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。