The Wayback Machine - https://web.archive.org/web/20200705040729/https://github.com/jpuri/react-draft-wysiwyg/issues/852
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backspace in an empty block should remove block type #852

Open
mikeappell opened this issue Jul 11, 2019 · 0 comments
Open

Backspace in an empty block should remove block type #852

mikeappell opened this issue Jul 11, 2019 · 0 comments

Comments

@mikeappell
Copy link

@mikeappell mikeappell commented Jul 11, 2019

If you're in a list block, or a block with a specified alignment (left/center/right), hitting backspace when there's no other text present should remove the list/reset the alignment back to the default.

This is the behavior with lists in vanilla Draft.js as well as Word, and I think it's accurate to describe this as the expected behavior in a rich text editor.

Here's what it looks like in Draft:
lists in draft

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
1 participant
You can’t perform that action at this time.