- 从官网下载ueditor资源,解压放在static目录
- 修改ueditor.config.js中的配置
- 将编辑器集成到系统中,src/main.js
import '../static/UE/ueditor.config.js'
import '../static/UE/ueditor.all.min.js'
import '../static/UE/lang/zh-cn/zh-cn.js'
import '../static/UE/ueditor.parse.min.js'
或者index.html
- 新建一个组件,放在components目录
mian.vue
<template>
<div>
<script :id="randomId" type="text/plain">