Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c63755f

Browse files
crayymumuPanJiaChen
authored andcommitted
perf[Tinymce]: remove useless code (PanJiaChen#3295)
1 parent 3782a9f commit c63755f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/components/Tinymce/index.vue

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -211,10 +211,7 @@ export default {
211211
window.tinymce.get(this.tinymceId).getContent()
212212
},
213213
imageSuccessCBK(arr) {
214-
const _this = this
215-
arr.forEach(v => {
216-
window.tinymce.get(_this.tinymceId).insertContent(`<img class="wscnph" src="${v.url}" >`)
217-
})
214+
arr.forEach(v => window.tinymce.get(this.tinymceId).insertContent(`<img class="wscnph" src="${v.url}" >`))
218215
}
219216
}
220217
}

0 commit comments

Comments
 (0)