node should hold the inline node the first time this is called. It will then, if the handler doesn’t return true for that, continue to be called for parent nodes. I just verified this works correctly for images. If you can confirm that it’s not working for you, please show what kind of node you are clicking.
I’ve tried different configurations, but the problem persists
This is the content I’m using:
<p>This <custom-mark data-id=’1’>doesn’t work</custom-mark> as <custom-mark data-id=’2’>intented</custom-mark></p>
<ul>
<li> That’s a bullet list with one … </li>
<li> … or two list items. </li>
</ul>
<p> Here is a nice image I’ve found online: </p>
<img src="https://source.unsplash.com/8xznAGy4HcY/800x400" />
<p>ProseMirror is very cool!</p>
When logging the node in handleClickOn (outside the condition) and clicking the “intended” work in the editor, I get the parent block node (paragraph) and not the inline one: