Clicking a link puts text in a textarea (much like vB code), please help.
Hi, I am building a web based site administration tool and I would like to implement a system whereby when a site administrator is adding a news item or whatever they can click on a text or button link (say, "Bold") and it will automatically insert the correct tags (i.e. "<b></b>"). Almost exactly like vBulletins code imput buttons when you are composing a new topic or reply. But with vBulletins version you are presented with a textbox you need to type in which then puts the code and your text in the form, I want my version to just put the code in. I can't really explain it but I hope you get it. I don't think this should be too long of a script, one or two functions at most but I really have no idea how to write it, can any SitePointers help me?