tutao / tutanota

Tuta is an email service with a strong focus on security and privacy that lets you encrypt emails, contacts and calendar entries on all your devices.

Home Page:https://tuta.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pasting sometimes does not trigger change listener in mail editor

charlag opened this issue · comments

To Reproduce:

  1. Open mail editor
  2. Paste a link to the document
  3. Hit send
  4. 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