Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ace Editor Get Current Cursor Row and Column

I'm using Ace Editor. In Javascript, (not jQuery), how would I return the current cursor row and column position?

like image 818
Steve Allday Avatar asked Jul 04 '16 09:07

Steve Allday


1 Answers

editor.getCursorPosition() returns an object with row and column properties

like image 117
a user Avatar answered Sep 21 '22 15:09

a user