Replies: 3 comments 3 replies
-
|
Our product team let me know they like this idea but it's going to be an expensive feature so we will want to get SRE involved in this discussion. |
Beta Was this translation helpful? Give feedback.
-
|
Though I like this idea, I'm afraid that some people want to decide whether to save the contribution or not, by themselves each time. So I think it may be better if each user can choose whether to use the feature. |
Beta Was this translation helpful? Give feedback.
-
|
I am not sure why would this be expensive? When the user starts editing an article a JavaScript function could be scheduled to run every N seconds. It would copy the content of the editor to a some variable in the memory. Every time it runs it could compare the current content of the editor with the one in this variable. If something has changed only then would it send it to the server. It would then also update the copy in this variable. |
Beta Was this translation helpful? Give feedback.
-
Originally posted on forem.dev by Jayendran Arumugam
During my post creation in dev.to, in the draft mode accidentally I forget to click the save button. The next day when I saw my yesterday's contribution was gone and the draft has only the version which I saved much earlier.
It would be great if you can provide an auto-save feature for any draft version on the post. So that it won't be a big shock like me for others in the future!
Beta Was this translation helpful? Give feedback.
All reactions