-
Notifications
You must be signed in to change notification settings - Fork 101
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
Won't work with react-quill v2.0.0 #62
Comments
Hi @fdemello, I using react-quill version 2.0.0 and work properly. I try define modules config inside react function component react-quill didn't work. Then I try define modules config outside function component now working properly. package.json:
QuillEditor.js:
|
Same problem. What if you need to pass some parameters from the component into the |
I have this exact issue. Based on the component props I want to change the endpoint I post the image to.
When the projectName is hardcoded and the modules object is defined outside of the component it works, but as soon as I define the modules inside the component it breaks. I've spent a lot of time trying to debug this with no luck. |
After extensive testing there's good news and bad news I think this is an issue with react-quill and not quill-image-uploader. The issue seems to be the function passed in the modules config object ( Good news, totally by accident I got everything working with using a useMemo, which is even stranger 🤷
|
So it turns out my fix didn't really work. Quill will disappear if It's a well documented issue of react-quill issue and even has a simple fix in this PR. Unfortunately react-quill is no longer maintained and this PR never got merged. Because this fix is so critical to me, I have forked react-quill with the fix included. |
I followed the example for react-quill. I have:
and when I add
imageUploader
tomodules
the component doesn't render.The text was updated successfully, but these errors were encountered: