Commit 6b13ffce authored by Pan's avatar Pan

fix:fix tinymce destroy bug

parent d20585a3
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment