SCEditor icon indicating copy to clipboard operation
SCEditor copied to clipboard

Deleting a blank line creates new lines in Firefox

Open infoliv opened this issue 4 years ago • 2 comments

Firefox lastest 93.0

Steps to reproduce the problem

  1. When I try the example on the home page https://www.sceditor.com/ by clicking on the second line (the blank one) and press on the "delete" key, the blank line is not only not deleted but new lines are also created in each paragraph.

The bug seems to be specific to Firefox, anyway it doesn't happen in Chrome..

infoliv avatar Nov 03 '21 14:11 infoliv

Thanks for reporting! This doesn't affect Safari either so definitely looks to be Firefox specific.

I've added this to the 3.2.0 milestone as the next release (3.1.0) is currently being tested so ideally don't want to add anything else to that now.

samclarke avatar Nov 22 '21 17:11 samclarke

I believe I'm having a similar issue. Simply deleting everything in the editor leaves me with

<p>
    <br />
<p>

In fact, it seems to just randomly add <br /> to lines every now and then.

My wife is experiencing the same thing on her phone, iOS/Safari latest version.

We're also just randomly seeing occasional. Sometimes there's a random <strong> in there for fun.

<p>
    <i><br /></i>
</p>

It appears to just decide that the end of some lines requires a <br /> and others don't? I just wrote this line, didn't hit enter and this is what I get.

<p>
	two enters, later and this is what I get.<br />
</p>

Jzsiba avatar Jan 05 '24 15:01 Jzsiba