Changelog: Upgraded Editor
Ben Halpern

Ben Halpern @ben

About: A Canadian software developer who thinks he’s funny.

Location:
NY
Joined:
Dec 27, 2015

Changelog: Upgraded Editor

Publish Date: May 13 '19
57 11

Hey folks, just wanted to let you know that we just shipped some upgrades to the editor for creating DEV posts.

Most of the functionality is the same, but things have moved around a bit.

Importantly, both versions of the editor ("v1", where you define meta info in "frontmatter" and "v2" which is more of a GUI) are now part of the same codebase, and both now include localStorage saving of drafts in progress (just in case your browser crashes etc.)

"v2" is also now the default for new users. We'll forever use markdown for the body of posts, but the frontmatter yaml for defining the rest of the info is not what everyone wants.

The editors are written in Preact, and now that we have unified the codebase with a good library for state management, we should be able to ship fixes and improvements at a faster pace.

Please feel free to offer feedback here. If you hate anything we've done, don't worry: We'll be finally shipping the create/update API for posts so you can write your own markdown editor! 😋

Let us know if you run into any new bugs.

Happy coding!

Comments 11 total

  • Jack Harner 🚀
    Jack Harner 🚀May 13, 2019

    Frontmatter for the meta was definitely sorta confusing. ("How do you spell canonical again?")

    We'll be finally shipping the create/update API for posts so you can write your own markdown editor!

    I smell a VS Code plugin coming 😂

    • Ben Halpern
      Ben HalpernMay 13, 2019

      I smell a VS Code plugin coming

  • Ady Ngom
    Ady NgomMay 13, 2019

    Great is autosave part of the upcoming features?

  • Camilo Martinez
    Camilo MartinezMay 13, 2019

    I think I found and issue, when edit and delete canonical url

    github.com/thepracticaldev/dev.to/...

    Oh crap

  • Rohov Dmytro
    Rohov DmytroMay 13, 2019

    We'll be finally shipping the create/update API for posts so you can write your own markdown editor!

    Niiiice!

    Can I see somewhere a sneak peak to prepare my toolchain? :)

  • Andrew Brown 🇨🇦
    Andrew Brown 🇨🇦May 13, 2019

    Hurray more Preact!

  • Zhe Li
    Zhe LiMay 14, 2019

    Cool! One question, is there a way to delete draft post?

    • Jess Lee
      Jess LeeMay 14, 2019

      Hey! There should be a delete button for each draft and post on your dashboard.

Add comment