Objective:
In textarea in a form:
1)Select text with cursor
2)Click a button (say bold)
3)Click a button (say underline)
4)Click a button (say italic)...etc...
5)The selected text gets <b>selected text</b> HTML bold tags written around it - without moving the selected text from its position in the rest of the text.
How do I accomplish that using JavaScript/ColdFusion? Is it even possible?
Hope you can help.
Thanks
In textarea in a form:
1)Select text with cursor
2)Click a button (say bold)
3)Click a button (say underline)
4)Click a button (say italic)...etc...
5)The selected text gets <b>selected text</b> HTML bold tags written around it - without moving the selected text from its position in the rest of the text.
How do I accomplish that using JavaScript/ColdFusion? Is it even possible?
Hope you can help.
Thanks