Explanation needed:
I have a toolbar with bold, italic, underline etc buttons on it. The aim is to format selected text with HTML tags.
e.g.
<b>some text</b>
I know I should be using SelLength and SelStart, but what do I do to actually insert the text before and after my selection?