Skip to content

Commit

Permalink
Scroll TinyMCE richtext editor back to caret on dialog close. Closes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
knadh committed Dec 29, 2023
1 parent db17fa1 commit a9a7156
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions frontend/src/components/Editor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,10 @@ export default {
tooltip: 'Insert HTML',
onAction: this.onOpenInsertHTML,
});
editor.on('CloseWindow', () => {
editor.selection.getNode().scrollIntoView(false);
});
},
browser_spellcheck: true,
Expand Down

0 comments on commit a9a7156

Please # to comment.