Selaa lähdekoodia

Fix contenType event not firing on non-Quill editor mode

Kailash Nadh 4 vuotta sitten
vanhempi
commit
bb1a5bb877
1 muutettua tiedostoa jossa 3 lisäystä ja 0 poistoa
  1. 3 0
      frontend/src/components/Editor.vue

+ 3 - 0
frontend/src/components/Editor.vue

@@ -244,6 +244,8 @@ export default {
         this.form.body = b;
         this.$emit('input', { contentType: this.form.format, body: this.form.body });
       });
+
+      this.isReady = true;
     },
 
     onTogglePreview() {
@@ -288,6 +290,7 @@ export default {
 
     body(b) {
       this.form.body = b;
+      this.onEditorChange();
     },
 
     htmlFormat(f) {