My question is simple, but I can't figured it out.
I'm inserting text in the textarea, using a method that I found around here. That method, insert the text in the actual cursor position, that's fine.
But I want to position the cursor between the inserted text.
The text I'll be inserting is:****
, __
, ~~~~
and [](http://)
I know, it's just some random symbols. But it is for a eregi.
I want to position the cursor between the chracters inserted, on **here**
, _here_
and ~~HERE~~
, the last one I need to position between the first [], it is [HERE](http://)
.
It shouldn't be that hard, but I just don't know how to do this. Any help?