Skip to content

newlines added when editing a post with Firefox #3768

@kikelkik

Description

@kikelkik

This bug seems to occur since the newest MyBB 1.8.21 release.
I've updated sceditor correctly and this bug is even reproducable on mybb.com community forum.
It might has got something to do with browser compatibilty, because in Chrome there is no problem but in Firefox (68.0.1 newest version) the error is there.

Steps to reproduce:
(1) Have a thread with some line breaks like:
1
2
3
4
5

(2) Save the post
(3) Edit the post with the editor (not quick edit)
(4) Set the cursor at the very begin of a line. For example right before the "3".
(5) Press the Backspace Key of your keyboard one time. Nothing despite of a mysterious hidden character seems to be deleted.
(6) Save the post.
(7) The post now looks like this:
1

2
3
4

5

Despite of the edited line and one up and down, between every line there is generated an empty line. No matter how long the post is.
This often results in annoying post breaks when users are deleting some text/lines and these "magical invisible characters" stay there or are missing.

I hope you can reproduce the problem. Four other persons tested it for me and experienced the same bug with their Firefox browsers but not with Chrome.

Metadata

Metadata

Assignees

No one assigned

    Labels

    3rdpartyThird party; related to products maintained by other organizationb:1.8Branch: 1.8.xs:confirmedStatus: Confirmed. Retested and found the issue existst:bugType: Bug. An issue causing error / flaw / malfunction

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions