mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-04-06 03:57:53 +08:00
fix:fix tinymce destroy bug
This commit is contained in:
parent
d20585a3f9
commit
6b13ffce66
@ -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…
x
Reference in New Issue
Block a user