mail
mail copied to clipboard
Pasting text deletes newlines
Steps to reproduce
- Copy some text with newlines, like some generated lorem ipsum
- Paste it in the composer
Expected behavior
The newlines should be kept as they are.
Actual behavior
Original text from lipsum.org:

Pasted in the composer:

Pasted in the CKeditor demo for testing:

Mail app version
Current on cloud.nc.com
Mailserver or service
No response
Operating system
No response
PHP engine version
No response
Web server
No response
Database
No response
Additional info
Also happens when copying from other places like GitHub, Atom editor, etc. Does not happen when pasting into https://ckeditor.com/ckeditor-5/demo/
Wow shocked this has been reported in 2022 and no attention! @ChristophWurst we need your help :)
Fixed by this https://github.com/nextcloud/mail/pull/11982!