Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

If saving a page fails for some reason, ensure that the changes are not lost #33

@AustinWise

Description

@AustinWise

There are two ways I can think of to do this:

  • Redirect back to the edit page with the modified content. Display an alert with the error message.
  • Instead of submiting the form with the tradtional post, use JavaScript to save the changes. Once the client side confirms that the page was saved, only then redirect to displaying the page.

I think we could also save the edited page in localstorage, so if the browser crashes, the changes are not lost.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions