fix[Tinymce]: fixed fullScreen bug #1400
This commit is contained in:
parent
46d6f455af
commit
999ea3a443
1 changed files with 7 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue