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

list item cannot be deleted #2

Open
deanshub opened this issue May 6, 2016 · 2 comments
Open

list item cannot be deleted #2

deanshub opened this issue May 6, 2016 · 2 comments

Comments

@deanshub
Copy link

deanshub commented May 6, 2016

when inserting a list item to the first row of the editor, the item can't be deleted with a regular backspace,
only by inserting a return character when it's empty

referencing #1 as they are connected in thy're behavior

@makenosound
Copy link
Member

@deanshub Yep, I think it would be good to handle this case.

It’s not really connected to #1 in my opinion (see the comment there).

@aight8
Copy link

aight8 commented Jan 10, 2017

Strange I cannot reproduce this.
I don't get it.
I can see the error on the example of draft-js-markdown-plugin's example page: https://ngs.github.io/draft-js-markdown-shortcuts-plugin/

But both plugins can handle it correctly locally.

Any idea?!

edit: I figured out why. I handle key commands first with RichUtils.handleKeyCommand. This handle this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants