Browse Source

rich text

xiongzhu 7 years ago
parent
commit
9975ffed87
1 changed files with 5 additions and 0 deletions
  1. 5 0
      src/main/vue/src/components/RichText.vue

+ 5 - 0
src/main/vue/src/components/RichText.vue

@@ -36,6 +36,11 @@
         created() {
             this.content = this.value || ''
         },
+        destroyed() {
+            if (this.editor) {
+                this.editor.destroy()
+            }
+        },
         mounted() {
             tinymce.init({
                 target: this.$refs.editor,