Skip to content

feat: [wip] autosave drafts [3252]

Hannes Heine requested to merge pr3481head into master

Created by: Tirokk

rbeer Authored by rbeer


🍰 Pullrequest

Adds ProseMirror plugin AutoSave

  • saves comments and posts, as they are typed
  • loads last autosave when creating a new post

This really ought to be its own module prosemirror-plugin-autosave. Already a concerning amount of (wrong) coupling, like essentially testing the functionality of the plugin in the Editor spec.

Issues

Todo

  • Remove temporary /post/create autosave on (editor will be empty on next load)

    • submit
    • clearing editor
    • cancel?
  • use id from post:last, instead of creating new

  • setting for 'load last autosave'; bool might be out of scope, since it requires to add a settings page for the editor

Merge request reports