Callback for selection/cursor change?

Hey,

I can’t seem to be figuring this out: What is the correct way of catching a change in the selection and/or cursor position?

(I tried doing it via keypress events, but of course the callback is made before the event is processed and the cursor changes.)

If there is no such callback, can I put in a feature request?

I am integrating PM in Github’s Atom editor, and would like it so when the cursor is over a certain document node I show an atom window for editing the properties of that node.

Ok, maybe this has been answered just now: I will try the dispatchTransaction prop and see if that works.

1 Like

Yes, that works!