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

Add drafts #1

Open
hatkirby opened this issue Jul 3, 2017 · 2 comments
Open

Add drafts #1

hatkirby opened this issue Jul 3, 2017 · 2 comments
Assignees

Comments

@hatkirby
Copy link
Owner

hatkirby commented Jul 3, 2017

In the entry editor in the admin panel, you should be able to save a draft of whatever you are writing. Bonus points for autosaving, but that can be a second step.

@hatkirby hatkirby self-assigned this Jul 3, 2018
hatkirby added a commit that referenced this issue Jul 4, 2018
An unpublished post is not viewable unless you are logged in. The "Create record" field is disabled for unpublished posts, though this is only in JavaScript and the backend will not disallow creating records for unpublished posts if forced to. Unpublishing a post does not destroy records for that post.

This only applies to blog posts, currently; streams and stream updates cannot be drafted. Unpublished posts still require titles and slugs. There is no autosaving functionality yet.

refs #1
hatkirby added a commit that referenced this issue Jul 4, 2018
They do still technically require titles, but the engine will fill in "Untitled draft" if it is left blank. Unpublished posts can be viewed at a different URL than published posts would be. Quick links to view published and unpublished posts have been added to the admin panel.

refs #1
@hatkirby
Copy link
Owner Author

hatkirby commented Jul 6, 2018

We should use Rails concerns to extend this functionality to streams and stream updates.

@hatkirby
Copy link
Owner Author

TinyMCE has functionality for autosaving to local storage. This could be a good first step for autosaving, but is unrelated to the drafts functionality because it doesn't contact the server. Thus, autosaving should be broken out into its own issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
This website
Make life easier
Development

No branches or pull requests

1 participant