修复富文本版本升级带来的问题

This commit is contained in:
Zheng Jie
2022-02-25 10:50:49 +08:00
parent 523ab96b25
commit 46f5d401c6
3 changed files with 21 additions and 65 deletions

View File

@@ -41,9 +41,9 @@ export default {
const _this = this
var editor = new E(this.$refs.editor)
// 自定义菜单配置
editor.customConfig.zIndex = 5
editor.config.zIndex = 5
// 文件上传
editor.customConfig.customUploadImg = function(files, insert) {
editor.config.customUploadImg = function(files, insert) {
// files 是 input 中选中的文件列表
// insert 是获取图片 url 后,插入到编辑器的方法
files.forEach(image => {
@@ -54,7 +54,7 @@ export default {
})
})
}
editor.customConfig.onchange = (html) => {
editor.config.onchange = (html) => {
this.editorContent = html
}
editor.create()