Good on ya, mate.
In this post and my next i'll attach a few files.
I'm not all that great at php coding, much less integrating javascript with php coding.
But, I found a free html to bbcode, and bbcode to html parser on a website called corzblog.
So it should be possible to take the string output of a wysiwyg editor and pass it through the html to bbcode parser upon submit.
the second attachment is a nice little editor called openwysiwyg. The name says it all, it's open source and has a very clean little look with a lot of features.
Of course the features that are not supported by BBcode will have to be removed, and buttons that dont exist will have to be created, but it's a start.
So there you go. the second attachment will be in my next post. (when are we getting multiple file attachments?)