Can not acess the current reference to editor using onKeydown event (REACT) #4507
Unanswered
costaluu
asked this question in
Questions & Help
Replies: 1 comment
-
I know this is rather old but figured I'd answer for anyone else that runs into this.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I don't know if this is a non-trivial thing however i've been searching for about 3 hours how to simply bind a keydown event and get the current text value of the editor.
I've tried on editorProps, editorProvider and tried to create a custom pm extension i still not able to get the current instance of the editor, the closest that i found was using the
onTransaction
method however I cannot tell if the user pressed Enter or not, I honestly don't know if this is a real problem or i'm just being a noob.Here's some code:
Beta Was this translation helpful? Give feedback.
All reactions