Have you ever inadvertently hit the backspace button, moved to a new site, or refreshed accidentally when writing a DEV post? Because, I totally have.
We implemented autosave for the v2 editor so that if any of those things happen, your post will still be there when you come back!
It uses localstorage, so nothing is saved permanently to the server until you actually press the save
or publish
button.
Here it is in action (the blip is me refreshing the page) đ
If you're using the v1
markdown editor with frontmatter, you can switch over to the fancy new v2
editor in the misc
section of your settings!
Top comments (11)
Hopefully this will ease folks' minds if they're writing in the browser.
If you are wondering about when this change will be available for v1, the most likely case is that we will add the ability to write both frontmatter and non-frontmatter posts in the v2 editor and sunset v1 as a separate chunk of code.
This is mostly an implementation detail, as there will still be two types of editors for all intents and purposes. And don't worry, the body of the post will always be expressed in markdown, because markdown is awesome.
That definitely makes most sense to me. I'd love to use v2, but I usually write frontmatter posts, so I've stuck with v1. I would hope that v2 would have that option.
I'm just going to refresh the page every 30 seconds as I'm typing, because yolo. Great work Ali! đŞ
THIS IS SO NEEDED OMG THANK YOU ALI!
Hello, I am the guy who have written the post called "Improving the way of saving posts on Dev.to while writing" few days ago. And I want to say
Thank you
This is a great addition! đ
Great work Ali! Thank you!
Woohooo!!! đ
Great job! đđ
Woow... Great work... Keep it up
how can i implement autosave using v2editor in my application