What can I use to reliably get a character offset of a click in Javascript using multiple nodes of text?

后端 未结 0 1792
孤城傲影
孤城傲影 2020-12-11 16:58

I\'m using Window.getSelection to get the character offset of where a user clicks, when that user clicks on some text. This works great when there is a single text node, and

相关标签:
回答
  • 消灭零回复
提交回复
热议问题