bangle-editor icon indicating copy to clipboard operation
bangle-editor copied to clipboard

React editor adds numbered list by default when content is empty

Open dan-dr opened this issue 4 years ago • 4 comments

  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 avatar Jul 29 '21 15:07 dan-dr

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.

dan-dr avatar Jul 29 '21 18:07 dan-dr

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

kepta avatar Jul 29 '21 18:07 kepta

@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 avatar Jul 29 '21 18:07 dan-dr

bangle

dan-dr avatar Jul 29 '21 18:07 dan-dr