Nice and you could probably make it save in under 512 bytes. Just persist everything to localStorage like the tiny spreadsheet http://jsfiddle.net/ondras/hYfN3/
Or save everything on the URL so it can be bookmarked too.
Or save everything on the URL so it can be bookmarked too.
http://xem.github.io/miniCodeEditor/editor.html
I recommend you to use Firefox: it will keep the code in the textareas. Chrome will only save the iframe's content.
;)
I've made something in this manner recently: http://tinyurl.com/selfcontained-editable-datauri
Feel free to fork miniCodeEditor and add this kind of features :)