Skip to content

Instantly share code, notes, and snippets.

@JenuelDev
Created June 7, 2023 02:07
Show Gist options
  • Save JenuelDev/1a3a8428be80037594541560941bf59a to your computer and use it in GitHub Desktop.
Save JenuelDev/1a3a8428be80037594541560941bf59a to your computer and use it in GitHub Desktop.
This Gist is how to get the cursor position.
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