posted by mrnocal:
Just as a reference, showing the ubbcode, would be sufficient really. Or even a drag/drop kind of interface.
The reference bit should be quite easy, just create a html-page containing the graemlins and open that with a link with javascript window.open. The graemlin page would need something like a input field with the same name as the textarea as well, for the reference to be shown in.
A drag and drop interface would be a bit harder to do, but I'm quite sure it's doable at least in MSIE. I've never done anything like that myself before though so I don't know how hard it is.
I also believe it is possible to update the textarea directly even though the popup isn't opened from that page. You just have to name the window and then it is possible to reference it using that name. I think this is possible at least, it's been ages since I did anything like this.