workaround for firefox to fix line breaks when replying a mail
Description
Firefox has some weird behavior on editable div: when the div is prefilled, typing a character will typed it in the wrong focus placed, user will see it as if firefox was creating a new line, then after pressing enter+continuing to type, newline will be deleted
after many trials, moving cursor was the only way I've found to fix it. Setting focus manually wouldn't work, as well as simulating a click
https://gitlab.e.foundation/e/infra/backlog/-/issues/5113
Screenshots
Without the workaround
With the workaround
Technical details
Tests
Issues
10 commandments of code review
Edited by Alexandre Roux