Greyback_rte is a project mainly written in JavaScript, it's free.
jQuery based rte
This is a jQuery based RTE for use with the greyback CMS that we're open sourcing.