How to call getCursor()?

I don’t know how to get the current line where the cursor is located in Vue 3. I know there’s getCursor, but I’m not sure how to use it.

getCursor doesn’t exist in version 6. If you have an editor view object, you can do view.state.doc.lineAt(view.state.selection.main.head).number to get a line number for the cursor position.

Thank you, you’ve been a big help. May I ask where I can find this information on which page?

The reference guide describes the entire programming interface.