4 ms·
I was bored, here you go! A completely offline browser-based markdown editor! https://notes.cx/ZkZNL9vFr https://notes.cx/ZkZNL9vFr Edit: Updated styles. Clar
by honie 5y ago
I was bored, here you go! A completely offline browser-based markdown editor!
https://notes.cx/ZkZNL9vFr https://notes.cx/ZkZNL9vFr
Edit: Updated styles. Clarified what it is.
- a9h74j 5y agoExcellent. Useful for being on a chromebook, offline and not logged in, so only opening local html files for tools is an option (no Chrome extensions). Will add file saving to my copy.
- sharikone 5y agoNot to pressure but having open/save buttons (implementable either as upload/download Javascript shims) would be interesting. They can also be quine-like (I.e. you save the HTML and Javascript of the editor itself together with the content). I did once that for Suneditor but did not publish it, alas.
- sitkack 5y agoI love having the document and the app being the same file. No app to find or version skew between app and data.
- honie 5y agoNo pressure at all! I could just... not think about it if I didn't want to. :p I took another stab at it and this is what I ended up with: https://gist.github.com/honmanyau/5680d1c7b823d454122a0275ba3fe60a https://gist.github.com/honmanyau/5680d1c7b823d454122a0275ba... It's now a Gist because I only realised later that the original note will be deleted after 24 hours. There are now two mechanisms that persist data between sessions: 1. Auto-saving to localStorage every 5000 ms (adjustable as per the instructions). 2. Manual data saving/download implemented using an anchor element that triggers a download. We can now restore markdown by loading a downloaded file (in principle this should work for any plain text file). One important thing to note here is that localStorage doesn't work in private browsing mode and its behaviour is not entirely consistent between browsers. So I wouldn't rely too much on it!
- hxii 5y agoThat's pretty neat! You actually gave me an idea - it'd probably be neat to be able to export a note in HTML/MD.
- whydoineedthis 5y ago404. Paid version for longer retention coming soon?
- honie 5y agoMn. :( By the time I found out about the 24-hour thing I couldn't edit my original post anymore, the Gist link that I included eventually include for an improved version was also a couple of levels down. If you are still interested, it can be found here: https://gist.github.com/honmanyau/5680d1c7b823d454122a0275ba3fe60a https://gist.github.com/honmanyau/5680d1c7b823d454122a0275ba...
- hxii 5y agoYour comment about the paid version feels a bit sarcastic, but the whole point was for notes to be temporary. Though I did think of an option to make the expiry selectable with an option, say, for 2 days.