Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editor: autosave changes to localStorage #328

Closed
kriskarkoski opened this issue Nov 20, 2015 · 1 comment
Closed

Editor: autosave changes to localStorage #328

kriskarkoski opened this issue Nov 20, 2015 · 1 comment
Labels
[Feature] Post/Page Editor The editor for editing posts and pages. [Type] Task
Milestone

Comments

@kriskarkoski
Copy link
Contributor

When editing a post, the following needs to be done:

  1. After the post is loaded, a poller needs to be added that triggers the autosave every so often. We might even do something like debounce editor change events or something so that it is more deterministic than a simple timer.
  2. If the data hasn't changed, do nothing.
  3. Else, write a backup to localStorage.

When loading an existing post, we need to:

  1. Check localStorage to see if we have an autosave.
  2. Show a UI for restoring the most recent autosave if there is one.
@kriskarkoski kriskarkoski added [Feature] Post/Page Editor The editor for editing posts and pages. [Type] Task labels Nov 20, 2015
@kriskarkoski kriskarkoski added this to the Editor: Next milestone Nov 20, 2015
@alisterscott
Copy link
Contributor

Closing this as auto-save is implemented in the editor and #1765 covers local storage (offline mode)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Post/Page Editor The editor for editing posts and pages. [Type] Task
Projects
None yet
Development

No branches or pull requests

2 participants