diff --git a/src/components/Tinymce/index.vue b/src/components/Tinymce/index.vue index a06f00c8..3367bd03 100644 --- a/src/components/Tinymce/index.vue +++ b/src/components/Tinymce/index.vue @@ -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)