Skip to content

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

Scroll TinyMCE richtext editor back to caret on dialog close. Closes #1635.

Kailash Nadha9a715696a12
diff --git a/frontend/src/components/Editor.vue b/frontend/src/components/Editor.vue
index 4b9bc8b2..d93fa459 100644
--- a/frontend/src/components/Editor.vue
+++ b/frontend/src/components/Editor.vue
@@ -227,6 +227,10 @@ export default {
tooltip: 'Insert HTML',
onAction: this.onOpenInsertHTML,
});
+
+ editor.on('CloseWindow', () => {
+ editor.selection.getNode().scrollIntoView(false);
+ });
},
browser_spellcheck: true,