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_MOBILEDOC should not be set if html prop is passed. #29

Closed
herregroen opened this issue Sep 3, 2018 · 0 comments
Closed

EMPTY_MOBILEDOC should not be set if html prop is passed. #29

herregroen opened this issue Sep 3, 2018 · 0 comments

Comments

@herregroen
Copy link
Contributor

The mobiledoc-kit editor will use mobiledoc if available but otherwise parse HTML if that is available.

The react component will always pass EMPTY_MOBILEDOC if no mobiledoc prop is given meaning that the mobiledoc-kit editor will always have mobiledoc available and thus never parse HTML.

This makes the html prop unusable as there's no situation where mobiledoc-kit will use it's value.

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

1 participant