Simple Autosave and Recovery for Forum WYSIWYG Editors


Login or Register for Dates, Times and to Reply

 
Thread Tools Search this Thread
# 1  
Simple Autosave and Recovery for Forum WYSIWYG Editors

Well, after causing Don Cragun to lose some replies when working on a few feature, I decided to create a simple autosave / recovery program that will autosave locally on key (key stroke) changes (and mouse clicks as well).

NOTE.
  • Works well in Chrome
  • Works OK in Safari, but is not reliable like Chrome.
  • Does not seem to work in FF due to all their unwanted "blocking" which I cannot turn off.

You can now click this "cloud upload" icon (image below) to load / recover text into the editor on network crash, abrupt browser close, computer crash, etc.

It will not recover what you delete with your keyboard because this simple script saves all your keystrokes locally in local browser storage.

Currently works on desktop, but I will port to mobile soon.

It's simple, but very cool and it works and it works across forum editors (advanced and quick reply editors) and if you close your browser and forget to save, when you open your browser again, it's there.

Press 200 "thank you" for this very cool feature! Smilie Or become Neo's Patreon sponsor and send me your spare change monthly and I'll keep adding new features like this Smilie You will also get another colorful "sponsor's badge" it you do!

Image

You can also you this feature as a faux cut-and-paste between your posts and replies as well. Experiment and have fun with it! Smilie
These 3 Users Gave Thanks to Neo For This Post:
# 2  
I just found a new use for the Simple Autosave feature.

While working on a reply, I was doing other tasks, and ended up closing a bunch of open tabs in my browser, and then accidentally closed the tab of the reply I was working on!

LALAAAA... Simple Autosave and Recovery to the rescue! No data lost in the post I was working on!
# 3  
Hey!

So far, I have tested and it works great in Chrome, but is not working as well as it should in Safari.

Will try FF next.

Update:
  1. Chome (Works as Expected)
  2. Safari (Works but NOT Updating as Expected - Not as reliable as Chrome).
  3. FF (Local Storage seems blocked. This is why I am not a fan of FF).

Bottom Line:

If Autosave and Recovery is important to you, use Chome!

If you a Safari user, then it seems to work OK, but not as good as Chrome.

FF, well... it seems hopeless!!

Cheers!
# 4  
OK.. I have added more code logic to save the editor text based on a set interval (1 second) when the editor text is different than the autosaved editor text in addition to keyboard changes because using only the keyboard change method is not reliable on Safari.

Also, I have completly disabled autosave and recover for Firefox because it does not work regardless. It seems Firefox marches to the beat of it's on non-standard drum:
  • Chrome - Working Good
  • Safari - Working Good
  • Opera - Working Good
  • Firefox - Disabled (Does not seem to support the same web standards for using local browser storage).
  • Edge - No MS Edge for Mac [Did not test].

Honestly, from a web dev perspective, Chrome is by far the superior browser compared to Safari and Firefox; and Safari is much better than Firefox.

If you are a Firefox user and are interested in reliable, advanced browser features, switch to Chrome Smilie and if not Chrome, Safari ... please.

Last edited by Neo; 01-27-2019 at 01:40 PM.. Reason: [*]Opera - Working Good
These 2 Users Gave Thanks to Neo For This Post:
# 5  
Just used the recovery. Great thing. Google-chrome browser with plugin cVim
restored one line, but still nice
This User Gave Thanks to nezabudka For This Post:
# 6  
Quote:
Originally Posted by nezabudka
Just used the recovery. Great thing. Google-chrome browser with plugin cVim
restored one line, but still nice
Cheers.

It will restore an entire page of text.... I was working on a very long post a day ago and accidentally closed out the tab on Chrome.... without autosave and recovery, it would have been gone; but with it, I was able to load the entire post and keep moving on!

Smilie
This User Gave Thanks to Neo For This Post:
# 7  
If you accidentally close a tab in Safari, you can restore it with "undo last operation" from the Edit menu (with keyboard shortcut <ctl>-Z). If you didn't realize what you had done immediately, but you hadn't closed any other tabs in Safari yet, you could also restore the accidentally closed tab with "Reopen Last Closed Tab" from the History menu (with keyboard shortcut <shift>-<command>-T).

Both of these will often get back all but the last change you made to text in the window you're restoring. But, of course, neither of them always restores what you want.
These 2 Users Gave Thanks to Don Cragun For This Post:
Login or Register for Dates, Times and to Reply

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Computers #922
Difficulty: Easy
Unix time can be extended backwards from the epoch using negative numbers.
True or False?

6 More Discussions You Might Find Interesting

1. Web Development

TODO: Add Javascript for Reply and New Post Autosave

TODO: Add a some javascript to: Autosave to browser localstorage when a member is creating a new post or replying to a thread (rewriting any prior text in autosave). Create a button on the editor to load the text stored in the autosave function. Difficulty: Easy. Estimated... (0 Replies)
Discussion started by: Neo
0 Replies

2. UNIX for Dummies Questions & Answers

On Linux, Putty Log is not WYSIWYG like the screen?

Hi all, I am not sure if this is a known issue. I am using Putty and logging the session into a log, only the printable one. On Solaris, all is working fine. But on Linux servers, Redhat or Suse, while the screen looks correct, the log file is not. Note example below: On the screen,... (1 Reply)
Discussion started by: newbie_01
1 Replies

3. UNIX and Linux Applications

opinions on video editors

What is everyones opinions on these video editors? PiTiVi Avidemux Cinelerra Kdenlive Kino Linux Video Editing: Top Five Linux Video Editors (0 Replies)
Discussion started by: cokedude
0 Replies

4. UNIX for Dummies Questions & Answers

Mail utilities and editors.

I was wondering what other mail utilities besides 'mutt, unix mail, PINE and elm' are available for unix. Also, what other editors are around besides 'VI, pico, vim and emacs'... I've been searching the net looking for some answers, but nothing much has come up.. thanx! (1 Reply)
Discussion started by: Shonnie
1 Replies

5. UNIX for Dummies Questions & Answers

Editors for UNIX

Where can i find editors for UNIX? thanks (5 Replies)
Discussion started by: Inbal
5 Replies

6. Programming

editors?

Just started out with C and are looking for a good editor in *nix that marks the code with colors. This is maybe a newbie thing to have the C code in colors but i like it and you can almost always se when you are typing wrong. :) Ive heard that emacs should have that option but i havent... (3 Replies)
Discussion started by: hexdoctor
3 Replies

Featured Tech Videos