1
0
mirror of https://github.com/PanJiaChen/vue-element-admin.git synced 2025-09-03 23:19:49 +08:00
This commit is contained in:
Pan 2019-05-17 18:16:42 +08:00
parent 2d280b8f0b
commit 92ca2ff0a3

View File

@ -87,16 +87,10 @@ export default {
}
},
mounted() {
load(tinymceCDN, (err) => {
if (err) {
this.$message.error(err.message)
return
}
this.initTinymce()
})
this.init()
},
activated() {
this.initTinymce()
this.init()
},
deactivated() {
this.destroyTinymce()
@ -105,6 +99,15 @@ export default {
this.destroyTinymce()
},
methods: {
init() {
load(tinymceCDN, (err) => {
if (err) {
this.$message.error(err.message)
return
}
this.initTinymce()
})
},
initTinymce() {
const _this = this
window.tinymce.init({