@marijn Thank you!
This question came up while trying to figure out the answer to the other question thread I have open.
I have been trying to find the paragraph node that the selection is in, so I can store some marks on it in an attr (as shown in my example code). I couldn’t figure out how to get the correct position though, because I didn’t understand what position setNodeMarkup
needed. before(1)
seems to work perfectly though.
Thank you so much for your help, and once again thanks for this awesome platform (ProseMirror). It is so much more than just a library!