quill-image-resize-module
quill-image-resize-module copied to clipboard
Using Quill and React `TypeError: window.Quill is undefined` error
I made a sample application (https://github.com/pc-magas/react-quill-demo) using react and Quill expecially the https://github.com/zenoamaro/react-quill and I am trying to load the plugin. But I get the error:
TypeError: window.Quill is undefined
Do you fellows have an Idea why does it happen?
The project I did it to have a clear base to demonstrate the possibe bug.The file that throws it is: https://github.com/pc-magas/react-quill-demo/blob/master/src/MyEditor.js
The libraries that I use are:
Also I used the normal Quill library had had the very same error.
I'm not a fan of the webpack dependency personally but a solution referenced by someone else on another thread works:
https://github.com/kensnyder/quill-image-resize-module/issues/7#issuecomment-304463415
I've shared my solution here, if it helps - https://github.com/davidroyer/vue2-editor/issues/91#issuecomment-1416340643