Question

MicrotechXP

New Member
Messages
7,644
Reaction score
0
Points
0
I need to know how to move the cursor in a textbox
using javascript.

Example:

[b.][/b] |<that is the typing courser outside of the box

I want it to be inside the

like this: [b.]|[/b]

Can you guys help me find a tut for something like that? :happysad:
 
Last edited:

Alejandro

Staff
Staff member
Community Support
Messages
9,436
Reaction score
1
Points
38
I don't really get what you mean here...
 

MicrotechXP

New Member
Messages
7,644
Reaction score
0
Points
0
What I mean is that in a WYSIWYG editor I am making I want the courser (|<thats is the courser when typing) and when I want to click on like bold and I want the tags to come and make the courser inside the tags.

Hope that explains. :)
 

Alejandro

Staff
Staff member
Community Support
Messages
9,436
Reaction score
1
Points
38
I think so... just make the cursor a variable and make the variable change when clicking.
 
Top