If i use the this.registerDomEvent(document, 'click', (evt: MouseEvent) => {
how can I from the evt get the line number of the click? I don’t understand how to go from DOM element to obsidian document line.
On desktop I used called editor.getCursor()
method but couldn’t get it to work on mobile.
Help please!
Great, this worked. Would never have found it without your help.
(unfortunately I solved this step but stumbled upon another discrepancy between desktop and mobile, but that’s a topic for another thread)
1 Like
system
Closed
6
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.