-
Notifications
You must be signed in to change notification settings - Fork 939
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
Set contents with Delta #101
Comments
Any update on this? Without it, I think I'll be stuck writing my own component wrapper around Quill, which I'd really rather not do. I'd love to be able to store Deltas in my database instead of raw HTML, but without this, I'm not sure how to go about doing that. Additionally, I'm using react-quill with redux-form, and they would work really well together if we could set the content with a Delta. |
This will probably be the next feature. Quick poll - how do you want the API to work? Do you want setContents exposed directly, or do you want the value prop to take Deltas for the declarative API? |
Also note that you can access |
Would it be possible to do some type checking on value? If it's a string, set the HTML, and if it's an object, attempt to setContents? The ideal for my use case would be to just set value with the Delta. |
Those changes are definitely sufficient for my needs. Thank you! |
First-class support for Deltas. Closes #101
@drock07 can you share an example of how you use it with redux-form please? |
Add support for setting content with Delta.
The text was updated successfully, but these errors were encountered: