Log in

View Full Version : Insert Formatting



Jas
07-05-2007, 03:10 AM
How do you insert text formatting (ie bold, italic, underlined) with a button? I have buttons that are suppose to apply formatting to selected text, but I don't know how to actually insert the tags. So, when a user highlights "Hello World!" and click the bold button, I need the highlighted text to become "(b]Hello World![b)" Any ideas?

EDIT: I would VERY much prefer JS to do this. . .

Thanks in advance!

mburt
07-13-2007, 02:58 PM
Try this:
http://www.webdeveloper.com/forum/archive/index.php/t-106449.html
I believe there is a post somewhere on these forums that has a more in depth discussion about it. Try searching.