diff --git a/src/components/Tinymce/index.vue b/src/components/Tinymce/index.vue index 7f4a0ae0..9032a6a8 100644 --- a/src/components/Tinymce/index.vue +++ b/src/components/Tinymce/index.vue @@ -157,8 +157,13 @@ export default { }) }, destroyTinymce() { - if (window.tinymce.get(this.tinymceId)) { - window.tinymce.get(this.tinymceId).destroy() + const tinymce = window.tinymce.get(this.tinymceId) + if (this.fullscreen) { + tinymce.execCommand('mceFullScreen') + } + + if (tinymce) { + tinymce.destroy() } }, setContent(value) {