Trying to save to firestore
See original GitHub issueI was trying to save data from quill to firestore and restore it next time I need quill. I initially tried to extract the html and then find the method to restor it to quill, but soon found out that _“dangerouslyPasteHTML” is big no no. So next I tried just save the data as a Delta object and then I can easily restore it using “setContents” .
However, and here comes the problem firestore doesn’t allow custom object to be saved only pure object. Meaning I can use Object.assing({},DeltaObj)
but then I’ll lose all delta methods and can’t restore the content.
So my question is is there is way to save and retrieve data from quill to firestore and back to quill. Or is it that quill and firestore incompatible? thanks.
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Get started with Cloud Firestore - Firebase
Navigate to the Cloud Firestore section of the Firebase console. You'll be prompted to select an existing Firebase project. Follow the database ...
Read more >Adding data | Firestore - Google Cloud
Stay organized with collections Save and categorize content based on your preferences. There are several ways to write data to Firestore: Set the...
Read more >Firebase Firestore Tutorial #4 - Saving Data - YouTube
Hey gang, in this Firebase Firestore tutorial we'll look at how to input data into a form & then save it to our...
Read more >Save data to Cloud Firestore in Google Firebase - YouTube
In this video I walk through step by step on how to setup the Firestore database and configure my app to save user...
Read more >I am trying to save form data to cloud Firestore - Stack Overflow
I am trying to save form data to cloud Firestore. Using the following link - https://firebase.google.com/docs/firestore/manage-data/add-data.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
If you need it as array:
If you need it as string:
After seeing the example that benbro referenced I went and try to hack again at a solution and I think I found one. Not sure if it’s best practice or any thing but seems to work.
I’ll double check and try this on firestore and then close the issue. But for now I don’t see what this wouldn’t work.