-
-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Save unsaved blog posts in local storage #150
Comments
When you say local storage, are you mean the browser local storage? Why not save in the blog database? Saving in local storage the writers won't be able to continue the article using another machine or browser, right? What's the complexity to just set an status (draft | posted) on the post model? |
That could be a way forward for sure. Yes, you are right, if we just put it into the local storage, you can't take it "with you". Probably we would need a new domain object called I do think a clean cut between those two concepts is necessary - for sure we could somehow fit this in into the current "BlogPost" Container but it does not feel right. |
Side note: Draft is already a state on |
With the new EasyMDE, this should work out of the box. |
Instead of dismissing the whole work, we can just put the whole blog post into the local storage (or give the option to save the draft to local storage).
This can also be done for already created blog posts where we additionally save the ID to make the mapping happen.
The text was updated successfully, but these errors were encountered: