Skip to content

Commit

Permalink
fix[Tinymce]: fixed fullScreen bug PanJiaChen#1400
Browse files Browse the repository at this point in the history
  • Loading branch information
PanJiaChen committed Dec 4, 2018
1 parent 46d6f45 commit 999ea3a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/components/Tinymce/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 999ea3a

Please sign in to comment.