Web editor not saving
iceypopCS
20 Mar 2019, 00:45So I've been working on my game, and I save after literally EVERY thing I do. However, stuff only gets saved 1/2 of the time, if even... resulting in me losing 3-5 paragraphs of text at times. Any ideas on how to keep this from happening?
jmnevil54
22 Mar 2019, 06:56Do not work past 30 minutes without taking a break. The editor meeds a break, and you need a break.
Also, sometimes you just need to refresh the page, and then everything you sved will come back!
mrangel
22 Mar 2019, 22:26I think there might be a browser-dependant glitch with pressing the "save" button too often. The web editor saves automatically after most actions anyway, but sometimes it can get confused.
If I'm guessing correctly about a certain race condition, it might be dependant on a race condition involving the timing of click and blur events in the editor's Javascript. If so, then it would sometimes result in large edits to a text field being lost if you click the 'save' button while the cursor is still in the textarea.
To test my theory: If you've done a lot of editing in one text box, click somewhere to move the cursor out of that box before clicking 'save'.
After a while, you should be able to see if this has stopped it losing anything.