6 ms·
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/
by mmahemoff 13y ago
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/ http://jsfiddle.net/ondras/hYfN3/
Or save everything on the URL so it can be bookmarked too.
- myfonj 13y agoYes, saving to URL would make this also shareable, so it would become real 'self contained Codepen' :] I've made something in this manner recently: http://tinyurl.com/selfcontained-editable-datauri http://tinyurl.com/selfcontained-editable-datauri
- xem 13y agoI like this idea! Feel free to fork miniCodeEditor and add this kind of features :)
- xem 13y agoYou know, thare's already a save function: you can write stuff in the cross-browser editor and save it on your desktop as a standalone HTML page (Ctrl-S / File > "Save as...") http://xem.github.io/miniCodeEditor/editor.html 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. ;)