mirror of
https://github.com/knadh/listmonk.git
synced 2025-10-03 20:06:37 +08:00
Scroll TinyMCE richtext editor back to caret on dialog close. Closes #1635.
This commit is contained in:
parent
db17fa1451
commit
a9a715696a
1 changed files with 4 additions and 0 deletions
|
@ -227,6 +227,10 @@ export default {
|
|||
tooltip: 'Insert HTML',
|
||||
onAction: this.onOpenInsertHTML,
|
||||
});
|
||||
|
||||
editor.on('CloseWindow', () => {
|
||||
editor.selection.getNode().scrollIntoView(false);
|
||||
});
|
||||
},
|
||||
|
||||
browser_spellcheck: true,
|
||||
|
|
Loading…
Add table
Reference in a new issue