I made a fork of cleditor where I changed the toolbar to use sprites so I could add my own custom buttons easily might be able to use some of the work from that. I think youd have to change the source code though.
https://github.com/billpull/cleditor https://github.com/billpull/cleditor/commit/22dfe0b057360bdabab9ba184b8eef52f9de9ace