getPosition

open fun getPosition(): Int

Retrieves the current position of the cursor relative to the start of the content of the editable.

Note that this position is in characters, not in bytes.

Return

the cursor position