diff --git a/resources/assets/js/components/TEditor.vue b/resources/assets/js/components/TEditor.vue index 152c30463..cfd3bd5d7 100755 --- a/resources/assets/js/components/TEditor.vue +++ b/resources/assets/js/components/TEditor.vue @@ -154,13 +154,22 @@ this.content = this.value; this.init(); }, + beforeDestroy() { + if (this.editor !== null) { + this.editor.destroy() + this.editor = null + } + this.spinShow = true; + $A(this.$refs.myTextarea).show(); + }, activated() { this.content = this.value; this.init(); }, deactivated() { if (this.editor !== null) { - this.editor.destroy(); + this.editor.destroy() + this.editor = null } this.spinShow = true; $A(this.$refs.myTextarea).show();