I have a math node view which renders math using katex (ProseMirror Math). I want to make this ndoe draggable so that I can easily move it inside my editor. The problem is that once the drag starts, the selectNode is fired and my math editor opens. I’d like to avoid opening inner math node view on both dragStart and dragEnd events and open it only on click. Here is the code:
Dropping content selects it in ProseMirror. You could probably change that with an appendTransaction hook, but as default behavior that’s going to stay this way.