Skip to content
Snippets Groups Projects
Commit 999ea3a4 authored by Pan's avatar Pan
Browse files

fix[Tinymce]: fixed fullScreen bug #1400

parent 46d6f455
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
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