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

Empty document can't be saved #287

Open
hannesstruss opened this issue Sep 28, 2016 · 1 comment
Open

Empty document can't be saved #287

hannesstruss opened this issue Sep 28, 2016 · 1 comment

Comments

@hannesstruss
Copy link

API doesn't allow saving a post with content: [] (refs https://github.com/the-grid/apis/issues/578), but when I delete all content in Ed, getContent returns [].

That means that currently, when I remove all content from a post, saving will fail with an error message on Android.

A solution could be for Ed to treat an empty document as <p />. Or we could allow saving empty documents to API.

cc @bergie

@forresto
Copy link
Contributor

forresto commented Sep 28, 2016

Currently both Ed and API(?) strip blank blocks. It would be nicer if Ed could save empty blocks, and get them back from API.

Filtering them out could happen between API and DS.

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

2 participants