Hi, I am using Decoration.inline
and changing the nodeName
to img/input(type=button). When doing this the selection is not behaving correctly when moving the cursor near the decoration.
Here is a demo. Steps to reproduce:
- Click anywhere in the editor
- Try to move the cursor with the arrow keys near the
button
This behavior was working correctly before version 1.17.0 of prosermirror-view.
Why am I doing this? It is super useful to decorate text patterns as UI elements like [+]
to checkbox.