Custom icon in toolbar (Plugin?)

Dear FCK-Freaks

I use FCKeditor for allmost every (PHP-) project I develop and really love it. Now I have to doa more advanced task with FCKeditor:

There has to be a new Icon in the toolbar. It opens a dialogue box (so I have to specify an onClick-Event for the toolbar-icon, that's all),in the dialogue box the user can select something (that is possible for me). Then, if the user clicks OK, I want to place a String in theeditor field where the cursor is. Something like

It should insert it as HTML, so if the string is '<a href="mytarget.html">Internal link</a>' it should insert exactly the HTML code anddisplay the link as it is, so you see only "Internal Link" as a link.

Would it be possible in an easy way? I hope you can help me - I read through the wiki and did not get it I know how to create the dialogue box, that's not the problem. The problem is the Icon and the Placement of a String right at the cursorsposition.