As it seems many have done, I also made a text editor for first drafts called Typewriter.
It's a little more restrictive since you can't move the caret. However, you can 'delete' mistakes by striking them out. Also, when you save your draft, text you've struck-out is excluded.
I turned it into a desktop app for mac since I wanted something which would work offline and save/read files nicely but you can preview the basic writing experience in browser (http://llllll.li/typewriter/app/). The code is also on Github: https://github.com/davidmerfield/Typewriter