Sorry for may bad english!
How to add a function that will add some text in textarea, when someone clicks on button, where the cursor is?
(Like here, on daniweb textareas!)
eg. There is bold button! The user clicks on it, and the text "[BOLD][/BOLD]" writes where curser/caret is. Cursor/caret (|) is focused between these two elements "[BOLD]cursor/caret (|)[/BOLD]"