Steve Allday Steve Allday - 5 months ago 30
Javascript Question

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?

Answer

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