HTML Editor is 1 product that supports the capabilities @pwiseman mentions takes 3 separate components to accomplish and without having to install any COM objects. The fact is PHP has some great advantages including image manipulation and file handling.
Neilo, that is great suggestion if people have both CS3 and CS4 available to them.