Hi,
I'm using functionnal component with hooks with the DocumentEditorComponent.
I need to use events selectionChange and contentChange, but the functions called for these events haven't the refreshed state value,
instead, it has the state value when the callback is set to the event.
I've built a quick example with the selectionChange event:
https://stackblitz.com/edit/react-n1rnfi?devtoolsheight=33&file=index.js
I need to have the current state value in these callbacks.
any idea to do that?
I'm maybe wrong, but I think I hadn't this problem in previous versions of the document editor
Regards,
François