For example, if I have <p>Hello world</p>
and my cursor is on e
, how could I know that?
Update
Thank you so much for all of your comments. I don't want to change it, but to get two information: the char, in this case "e" and it's position (x and y). I'll use them for other purposes. I'm also making it for a Chrome extension so that I cannot change the original HTML tags.