Tiptap: toggle between bullet list and ordered list not working

Created on 27 Aug 2018  Â·  7Comments  Â·  Source: ueberdosis/tiptap

Find a way to toggle bullet lists and ordered lists (and maybe todolists)
aug -27-2018 15-27-29

feature request help wanted

Most helpful comment

Okay. I'll continue to have a look and I hope that I can send a PR to fix it.

All 7 comments

Would this work if the mark cleared the existing formatting first (e.g. run the clear formatting / paragraph mark) and then apply the ordered list?

I've started to investigate how to fix this issue but I want to check if someone else is already on it.

My starting point is the discussion on Prosemirror forums. There is a comment about the implementation done on @atlaskit/editor-core to be a working one but their implementation is quite complex.

Looking at the various corner cases covered by that code I would try to port it from typescript to ES6 instead of reinventing the wheel. Are the maintainers here okay with that?

Hey @erickwilder. I also found this discussion a few weeks ago and tried my best – but without success. 😅 Maybe something with my implementation of commands isn't working here. I'd like to see someone else tackle this!

Okay. I'll continue to have a look and I hope that I can send a PR to fix it.

Hello, any updates on this?
I want to help but I don't have the expertise to do this.
I found this prosemirror wrapper on react have this toggle figured out.
https://github.com/chanzuckerberg/czi-prosemirror/blob/master/src/toggleList.js

But, it's written in Flow, and it's complex.

@laurensiusadi
Sorry, I didn't have much time to work on this one but I did some research a while ago and I couldn't find a "simple" solution for it. Thanks for sharing this link; in general terms, I could follow through the code and if everyone agrees I could use it as a base implementation here.

@erickwilder I really need this feature. Any update?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

chrisjbrown picture chrisjbrown  Â·  3Comments

dolbex picture dolbex  Â·  3Comments

pk-pressf1 picture pk-pressf1  Â·  3Comments

winterdedavid picture winterdedavid  Â·  3Comments

connecteev picture connecteev  Â·  3Comments