wysiwyg editor with yii's cfileupload integration?

Does anyone know of a wysiwyg editor which has been integrated with Yii’s CUploadedFile functionality for uploading files. I would like to expose the editor to end users and need some secure image uploading functionality with wysiwyg editor. All recommendations/experience/tricks/workarounds are welcome.