Skip to content

[Squire] Editor behaves strangely #1389

Closed
@hampoelz

Description

@hampoelz

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.

Screenshot from 2024-01-14 10-55-33
Screenshot from 2024-01-14 11-03-42
Screenshot from 2024-01-14 10-55-53

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions