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

Losing my edits #535

Closed
CharliePoole opened this issue Mar 13, 2022 · 8 comments
Closed

Losing my edits #535

CharliePoole opened this issue Mar 13, 2022 · 8 comments

Comments

@CharliePoole
Copy link

I'm running HTMLy with the blog theme. A couple of times, I was interrupted while I was editing a page and came back to continue after a delay. When I went to save my changes, I was asked for my login credentials. After I logged in, my changes were gone. This seems like a bug... As a workaround, is there any way to tell the editor to automatically save the draft as I work?

@dirmanhana
Copy link
Contributor

sounds good if there is an auto draft feature

@rolandixor
Copy link

I'm not sure if this was ever addressed, but I'm having the same issue. Losing work because drafts aren't being saved automatically.

@KuJoe
Copy link
Sponsor Contributor

KuJoe commented May 17, 2024

Currently working on an auto save to drafts feature, should be ready by this weekend.
#722 (comment)

@CharliePoole
Copy link
Author

That would be a welcome addition, IMO.

@KuJoe
Copy link
Sponsor Contributor

KuJoe commented May 18, 2024

I've made it a little cleaner and I got it working for all forms of posts. There are some minor bugs I need to work out such as creating multiple drafts if you change your tags/titles so I may put some intelligence behind it so it doesn't start to auto save until you've started writing in the content field.

It also does not work on edits of existing posts/drafts, it only works for new posts. This might be a bigger discussion though because I personally don't want to overwrite existing drafts if I'm working on edits I might not keep.

image

@danpros
Copy link
Owner

danpros commented May 18, 2024

It also does not work on edits of existing posts/drafts

Yes, autosave should only in draft.

@KuJoe
Copy link
Sponsor Contributor

KuJoe commented Jun 2, 2024

This can probably be closed due to PR #757

@danpros danpros closed this as completed Jun 2, 2024
@danpros
Copy link
Owner

danpros commented Jun 2, 2024

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants