Skip to content
Snippets Groups Projects
Commit 6b13ffce authored by Pan's avatar Pan
Browse files

fix:fix tinymce destroy bug

parent d20585a3
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment