You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just tried to use your module into React-Quill and it almost works but there is an issue. Why did you use export instead of "default export" ? Without this fix, I got an error:
"Unexpected token export"
I just copy pasted your implementation and modified this and it worked. I won't do a pull request because it's just one single word to add (and then change the demo to "import ImageDrop from..." instead of "import {ImageDrop} from ..."
Here the default export is better because ImageDrop is the only thing class you are exporting.
The text was updated successfully, but these errors were encountered:
You can add following script to your npm script section: "node-modules": "DIR=node_modules/quill-image-drop-module && babel $DIR/src --out-dir $DIR/dist --source-maps",
it's a hack but it works
Hi !
I just tried to use your module into React-Quill and it almost works but there is an issue. Why did you use export instead of "default export" ? Without this fix, I got an error:
"Unexpected token export"
I just copy pasted your implementation and modified this and it worked. I won't do a pull request because it's just one single word to add (and then change the demo to "import ImageDrop from..." instead of "import {ImageDrop} from ..."
Here the default export is better because ImageDrop is the only thing class you are exporting.
The text was updated successfully, but these errors were encountered: