fix:fix tinymce destroy bug

This commit is contained in:
Pan 2017-11-17 17:57:17 +08:00
parent d20585a3f9
commit 6b13ffce66
1 changed files with 3 additions and 1 deletions

View File

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