Any way to handleDOMEvents after editor state updated?

I want to get the updated editor state on mousedown event, is there a way to do that? thanks

The editor state doesn’t update until the mousedown event has been handled, so there’s not really a straightforward way to do this.