Description
I had to write a lot of emails recently and noticed some strange behaviors in the editor:
- If I write in plain mode and then switch to HTML mode, an additional empty line is inserted after each line
- If I save a mail written in plain mode as a draft and then open it again, the writing mode changes to HTML
- Sometimes the undo (CTRL + Z) undoes a lot more than it should, but interestingly, the redo (CTRL + Y) allows me to go back to the stage I wanted with just one undo.
- The font size and family behaves very strangely with pasted text (or text with different formats)
As an example, I have copied together the following simple text. No font size is displayed in the first line. In the second line, the font size is 16px. In the third line, the font size is also 16px, although the text is significantly smaller than in the second line. It makes no difference whether I just click in the text or whether I select it.
The source code for this text looks like this:
<div><span style="font-family: var(--font-face); font-size: var(--nc-default-font-size);">Test.</span><br></div><div><br></div><div><span style="font-family: var(--font-face); font-size: 13px;"><span style="font-size: 16px;">Test2.</span></span><br></div><div><br></div><div>Test3.<br></div><div><br></div>
Furthermore, if a text has different fonts / font sizes and I select the whole text, only the one that was selected first is shown in the selector. In this case, however, the selector should be empty so that you know that the whole text does not have the same font or font size.
Environment:
- Browser: Chrome 120
- SnappyMail Version: 2.32.0
- Mode: Nextcloud 28.0.1
I also experienced the same problems on the snappymail demo page.