codex-team / editor.js

A block-style editor with clean JSON output
https://editorjs.io
Apache License 2.0
28.24k stars 2.06k forks source link

[Bug] Backspace doesn't work correctly in Firefox 78.0a1 #1159

Open tekacs opened 4 years ago

tekacs commented 4 years ago

Describe a bug.

Steps to reproduce:

  1. Go to https://codex.so/editor
  2. Place the cursor in the Key features list, after the first bullet
  3. Press enter, press backspace
  4. Press enter, press backspace again
  5. The second time, the line is not removed and the cursor instead jumps to the section header.

Expected behavior: A line is added and removed

Screenshots: http://tkcs.in/5c8a41af39eb

Device, Browser, OS: Firefox 78.0a1 (Nightly)

Editor.js version: Not sure, since this is your main website. :)

Plugins you use with their versions: Once again, this is your website.

alebon commented 4 years ago

I can confirm this for Firefox 76. Furthermore I see this in code boxes. The time you create a code block it is working fine. After saving and reloading the data in the editor, backspace and arrow left key inside the code block make the cursor jump out of the box to the end of the block above.