Skip to content

Deleting Characters in New Blocks #2429

@chative-phuc

Description

@chative-phuc

Description:
I'm not sure if anyone has raised this bug before, so I wanted to report it. When creating a new block and adding a few spaces before a word, if the cursor is positioned at the start of the word and I press the Delete button (or <- Back button), the entire block is deleted instead of just one character.

Steps to Reproduce:
(I used your demo website to reproduce the bug, so you should be able to replicate it)

1.Go to your demo website: https://editorjs.io/
2.Enter some random text.
3.Place your cursor at the center of the text or somewhere else and press Enter (to create a new block).
4.Add some spaces before that word and click the Delete button (or <- Back button), and you will see the bug occur.
Expected Behavior:
Only one character should be deleted, not the entire block.

Browser:
Chrome, OS: Windows 11
Editor.js version: None

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions