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

React editor adds numbered list by default when content is empty #231

Open
dan-dr opened this issue Jul 29, 2021 · 4 comments
Open

React editor adds numbered list by default when content is empty #231

dan-dr opened this issue Jul 29, 2021 · 4 comments

Comments

@dan-dr
Copy link

dan-dr commented Jul 29, 2021

  1. Go to https://bangle.dev/docs/examples/react-floating-menu
  2. On the first example delete all the text with Ctrl+A, Del
  3. The content of the editor becomes 1. as if I put a numbered list.

Tried to debug but I'm new to this so not sure why it happens but it's preventing me from using lists.

@dan-dr
Copy link
Author

dan-dr commented Jul 29, 2021

Btw, since I need to remove the orderedList plugin, listItem plugin doesn't work and as a result the bullet list doesn't work as well.

@kepta
Copy link
Collaborator

kepta commented Jul 29, 2021

Hey @dan-dr orderedList is required for the list to work. Does adding it back work?

@dan-dr
Copy link
Author

dan-dr commented Jul 29, 2021

@kepta not sure what you mean. That's the issue - If I use the orderedList plugin, it forces 1. when initialValue is null. I believe it's a bug, and it means I can't really use orderedList, and subsequently can't use the listItem and bulletList

@dan-dr
Copy link
Author

dan-dr commented Jul 29, 2021

bangle

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

No branches or pull requests

2 participants