you can't get the cursor position. If i get what u mean you're saying say you had an edit bot:
[Some text_____]
and you put the cursor where the red bar is
[Some |text_____]
Then you want to put text in that position of the cursor..
You can't. There no $did(id).cursorpos property or anything.