1
0
mirror of https://github.com/PanJiaChen/vue-element-admin.git synced 2025-04-06 03:57:53 +08:00

perf[Tinymce]: remove useless code (#3295)

This commit is contained in:
crayymumu 2020-07-01 13:50:18 +08:00 committed by 花裤衩
parent 3782a9f332
commit c63755f4ca

View File

@ -211,10 +211,7 @@ export default {
window.tinymce.get(this.tinymceId).getContent() window.tinymce.get(this.tinymceId).getContent()
}, },
imageSuccessCBK(arr) { imageSuccessCBK(arr) {
const _this = this arr.forEach(v => window.tinymce.get(this.tinymceId).insertContent(`<img class="wscnph" src="${v.url}" >`))
arr.forEach(v => {
window.tinymce.get(_this.tinymceId).insertContent(`<img class="wscnph" src="${v.url}" >`)
})
} }
} }
} }