Using KFM as a plugin for CKeditor
Note the demo below. You can access KFM through it by using the Link or Image icons (click Browse Server in the popup).
Linking KFM to CKeditor is very easy. Load up your CKeditor instance as usual, but add a filebrowserBrowseUrl parameter pointing to your KFM instance:
CKEDITOR.replace( 'textarea_name',{
filebrowserBrowseUrl: "/javascript/your-kfm-copy/"
});