DEV Community

Ali Spittel
Ali Spittel

Posted on

Changelog: V2 Editor Autosave!

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) 🎉

autosave editor

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!

the v1/v2 editor toggle

Top comments (11)

Collapse
 
ben profile image
Ben Halpern

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.

Collapse
 
johnbwoodruff profile image
John Woodruff

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.

Collapse
 
nickytonline profile image
Nick Taylor

I'm just going to refresh the page every 30 seconds as I'm typing, because yolo. Great work Ali! 💪

Collapse
 
lkopacz profile image
Lindsey Kopacz

THIS IS SO NEEDED OMG THANK YOU ALI!

Collapse
 
iaziz786 profile image
Mohammad Aziz

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

Collapse
 
lauragift21 profile image
Gift Egwuenu

This is a great addition! 🎉

Collapse
 
rhymes profile image
rhymes

Great work Ali! Thank you!

Collapse
 
ahmadawais profile image
Ahmad Awais ⚡️

Woohooo!!! 🎉

Collapse
 
vintharas profile image
Jaime GonzĂĄlez GarcĂ­a

Great job! 😄👍

Collapse
 
devdammak profile image
Damola Adekoya

Woow... Great work... Keep it up

Collapse
 
naveensingh89 profile image
Naveen

how can i implement autosave using v2editor in my application