Usability Improvement: Store unsaved text in localstorage, improve autosave, and connection handling
Describe your problem
When I am writing and the Internet connection goes down, I receive a panicky message instructing me to save content to a file. Better than nothing, but not ideal.
It would be much better to simply store all unsaved text into localStorage using the oninput Javscript event handler. This can be removed as soon as an autosave or manual save is performed.
If such text is present, it should be displayed instead of the text that is in the article, restoring the state as it was before the internet connection drop happened. When the internet comes back, an autosave should be performed immediately.
Missing internet connection should not be warned about in a popup, but in a subtle notification with no call to action, perhaps linking to a manual entry that says: Writing with no internet connection is no problem because your writing will survive any reload, just make sure to connect to the internet again when you want to publish our content.
Ideally, I believe it would be good if an autosave were performed at 'every' oninput event- words are very valuable to a writer. The latest autosave could be used for this, just updating it- and then, after the autosave period, a new one could be generated so the older autosaves can stay.
This would be ideal save usability from my perspective. I hope this helps! Feel free to ask questions.
Steps to reproduce the problem
Write a bit of new content, then cut internet connection to computer. Wait a bit.
Bludit version
3.15 Pro
PHP version
7.4.33