codex-team / codex-team/editor.js

Blank lines are not removed in the div contentEditable

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

Description

when you try to delete several blank lines in div contentEditable by backspace, they are not deleted

![image](https://github.com/codex-team/editor.js/assets/122379429/a228a62c-5527-49a9-bdd2-0a05fa7635fc)

the cursor just moves up

![image](https://github.com/codex-team/editor.js/assets/122379429/3b7288ec-017f-4b53-bf6d-28f3b138df82)

while a regular div contentEditable removes these lines as needed

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.