codex-team / codex-team/editor.js

[Bug] `contentEditable = false` block is deleted when type backspace after the block in editor.js upper `2.22.2` version.

Open
#1,848 0 comments 1 reaction 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
31.9k
Forks
2.2k
Avg merge
1d 1h
Merged PRs (30d)
1

Description

Describe a bug.

Steps to reproduce:
1. Go to the editor
2. Make any `contentEditable = false` block (such as image)
3. Type backspace to delete previous block in a paragraph block.

Expected behavior:
Do not delete `contentEditable = false` block, but it deleted.

Screenshots:
![delete](https://user-images.githubusercontent.com/37131996/147051655-0964c268-985d-415a-8039-2cf0c87d3db1.gif)

The block is not deleted under editor.js version 2.22.1.
Here is the same situation at editor.js version 2.22.1

![delete](https://user-images.githubusercontent.com/37131996/147052701-c8dd89cb-10e9-411c-a41e-f9c42bd49df6.gif)

Device, Browser, OS: MacBook Pro / Chrome / Mac

Editor.js version: 2.22.2
https://github.com/codex-team/editor.js/releases/tag/v2.22.2

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.