I think that was discussed above, and that does indeed work. However, my problem (and it sounds like his as well) is that we have the text in a control outside of the editor, not in the toolbar.
It would be like clicking a position in the editor, then clicking in the "Try click the "get HTML" button" text box, then pressing the "insert HTML button". Since the editor has lost focus, the insert occurs at the beginning of the text... In my case, doubleclicking in a listbox changes the focus. I need a way to save the document cursor instead of the editor cursor. I can't seem to get the document to attach an onclick attribute to in server code...
Does that make it clearer?