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

fix:fix tinymce destroy bug

This commit is contained in:
Pan 2017-11-17 17:57:17 +08:00
parent d20585a3f9
commit 6b13ffce66

View File

@ -127,7 +127,9 @@ export default {
})
},
destroyTinymce() {
window.tinymce.get(this.tinymceId).destroy()
if (window.tinymce.get(this.tinymceId)) {
window.tinymce.get(this.tinymceId).destroy()
}
},
setContent(value) {
window.tinymce.get(this.tinymceId).setContent(value)