Created
June 7, 2023 02:07
-
-
Save JenuelDev/1a3a8428be80037594541560941bf59a to your computer and use it in GitHub Desktop.
This Gist is how to get the cursor position.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
new Editor({ | |
onTransaction: ({ state }) => { | |
console.log(state.selection.anchor) | |
}, | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment