Is there a hook to listen for selection change on the proseMirror view or state?
At the moment, I am listening for a
mouseUp event on the container dom element and then reading the selection from the
editorState after a delay of 150ms.
I would like to remove the need for a delay and use a custom handler.
Is there the equivalent of handleSelection on the props.
handleSelection: (view, dispatch, selection) => true
Where you can set the selection manually using
setSelection with a