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

This commit is contained in:
Kailash Nadh 2023-12-29 23:01:51 +05:30
parent db17fa1451
commit a9a715696a

View file

@ -227,6 +227,10 @@ export default {
tooltip: 'Insert HTML',
onAction: this.onOpenInsertHTML,
});
editor.on('CloseWindow', () => {
editor.selection.getNode().scrollIntoView(false);
});
},
browser_spellcheck: true,