I am using Ace for my in browser text editor.
editor.on("mousemove", function (e)
{
// use clientX clientY to get row and column locations
});
From clientX clientY coordinates i need actual row and column number on the editor.
Looking at Ace api but cant find anything related.
Do you know any way i can achieve this?
Thanks
Found it.
editor.on("mousemove", function (e)
{
var position = e.getDocumentPosition();
});
found it looking inside event object in chrome debugger.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With