-
Couldn't load subscription status.
- Fork 78
Closed
Description
For new posts
- User starts typing
- Periodically, the post is saved to the API as draft
- API transforms markdown into html, sets it to post body, returns post with body filled in
- Ember can show preview using body field in separate tab/pane
- Once user clicks publish, the final version of the post is saved in the published state
For edited post
- User clicks edit on existing post
- Periodically, the post is saved to the API as a separate draft
- API transforms markdown into html, sets it to post body, returns post with body filled in
- Ember can show preview using body field in separate tab/pane
- Once user clicks publish, the original version of the post has changes saved.
Questions
- What does the API do with the drafts once publish is done - might require issue on API side.
- How does the API figure out which original post the draft of an edit belongs to? It could be doable by identifying via number, but I'm not sure. There is no unique index on the number field at the moment, so it is possible.
Metadata
Metadata
Assignees
Labels
No labels