fix:fix tinymce destroy bug

pull/300/head
Pan 7 years ago
parent d20585a3f9
commit 6b13ffce66

@ -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)

Loading…
Cancel
Save