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() {
if (window.tinymce.get(this.tinymceId)) {
window.tinymce.get(this.tinymceId).destroy()
}
},
setContent(value) {
window.tinymce.get(this.tinymceId).setContent(value)