d4rkr00t / prosemirror-dev-tools

Developer Tools for ProseMirror
317 stars 37 forks source link

add leading position for tags #122

Closed mwonng closed 1 year ago

mwonng commented 1 year ago

Change summary

Add a position ahead of node type name with tooltip as pictures.

What problem it solve?

Current all BlockNodeView have only position number before the type name, but it actually after node opening tag, this fix show exactly before and after position in the structure view.

// [0]<p>[1]text</p>
<p>text</p>

This will a little confuse for new Prosemirror user to identify position,

What it looks now?

image image

d4rkr00t commented 1 year ago

Also I caused a bit of conflicts by removing emotion :) I'm sorry...