To use: If you select text, then click a button, the text will be wrapped in the code you chose.
If you paste only the url in the link-field (and not the text for the link), then click Add link, it will add the link at cursor in textarea or at the end of the text.
If you mark a word and the click Add link, that word will become the link text. You don't have to remove the http:// if you paste a link in the url field, it's done automatically.
If you just click the code-button, the code will appear empty at the cursor or at the end of the textarea.
Note that when the page loads first time, you need to put the cursor in it to initiate the script.