forked from AkkomaGang/admin-fe
fix:fix tinymce destroy bug
This commit is contained in:
parent
d20585a3f9
commit
6b13ffce66
1 changed files with 3 additions and 1 deletions
|
@ -127,7 +127,9 @@ export default {
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
destroyTinymce() {
|
destroyTinymce() {
|
||||||
window.tinymce.get(this.tinymceId).destroy()
|
if (window.tinymce.get(this.tinymceId)) {
|
||||||
|
window.tinymce.get(this.tinymceId).destroy()
|
||||||
|
}
|
||||||
},
|
},
|
||||||
setContent(value) {
|
setContent(value) {
|
||||||
window.tinymce.get(this.tinymceId).setContent(value)
|
window.tinymce.get(this.tinymceId).setContent(value)
|
||||||
|
|
Loading…
Reference in a new issue