feat: [wip] autosave drafts [3252]
Created by: Tirokk
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
- implements #3252
- relates #3461 (closed)
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