Skip to content

High performance, self-hosted, newsletter and mailing list manager with a modern dashboard. Single binary app.

Fix incorrect init and change events on TinyMCE.

Kailash Nadhffcb9879c857
diff --git a/frontend/src/components/Editor.vue b/frontend/src/components/Editor.vue
index a9f98cc8..be3193df 100644
--- a/frontend/src/components/Editor.vue
+++ b/frontend/src/components/Editor.vue
@@ -39,7 +39,6 @@
v-if="form.format === 'richtext'"
:disabled="disabled"
:init="tinyMceOptions"
- @init="() => isReady = true"
/>
<!-- raw html editor //-->
@@ -174,11 +173,13 @@ export default {
a { color: ${colors.primary}; }
table, td { border-color: #ccc;}
`,
+
file_picker_types: 'image',
file_picker_callback: (callback) => {
this.isMediaVisible = true;
this.runTinyMceImageCallback = callback;
},
+ init_instance_callback: () => { this.isReady = true; },
},
};
},
@@ -318,6 +319,11 @@ export default {
this.onEditorChange();
},
+ // eslint-disable-next-line func-names
+ 'form.body': function () {
+ this.onEditorChange();
+ },
+
htmlFormat(to, from) {
// On switch to HTML, initialize the HTML editor.
if (to === 'html') {