Steve Allday Steve Allday - 1 year ago 178
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 Source

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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download