Self-editor is a project mainly written in JavaScript, it's free.
Eric Schrijver’s Self-referential WYSIWYG Editor
404: Not Found