Pasting Bullet-List from Word

Hi all, is there a way to handle the paste of a bullet list from Word, such that it creates a corresponding list which list items?

At the Moment paragraphs with dots as first character are created. I don’t fully understand what is going on there, what data from the clipboard does prosemirror see?

How do I make sure list and list-item parsers don’t interfere with each other? Thx, Raphael

I deal with this case by transformPastedHTML with RegExp, maybe helpful.

It’s been a while so this may be a little late, but I’ve written up a workaround for this on my blog hoping it helps, it includes an example of how to fix this for prosemirror! In essence you need to make the html semantic before letting prosemirror parse it.

1 Like