Pasting sometimes does not trigger change listener in mail editor
charlag opened this issue · comments
To Reproduce:
- Open mail editor
- Paste a link to the document
- Hit send
- See that the link is not included
Context
It seems like Squire sets this._ignoreChange
to true
in getCursorPosition()
.
#6774 added a new cursor
listener which calls getCursorPosition()
and introduces the issue.
Proper fix would be to fix it in squire (or not use it) but for now we can remove the listener again.
Test notes
- Pasting in the edtior still works
- Pasting and then sending email will include the pasted text
- Pasting still does sanitizing
- Typing in the editor still works
- Typing
*
and then space will create a list - Undo still works