Skip to content
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

With the release of Quill 2.0, Parchment image blot gets triggered regardless of if your handler is set #53

Closed
phillipwildhirt opened this issue May 7, 2024 · 3 comments

Comments

@phillipwildhirt
Copy link

Pretty simple. Upgrade to Quill 2.0, drag over an image and even if your handler is set, Parchment Image Blot runs trying to create the dropped image.

It's pretty clear to me that minified distributed Quill 1.3.7 was actually using a different version of quill-delta. So the issue may lie there rather than once we get to the parchment script.

Quill 2.0.1
Quill-Delta 5.1.0
Angular 17.3.7
Ngx-Quill 25.3.2

@phillipwildhirt
Copy link
Author

Appears as though quill 2.0.2 has fixed this with Bug Fix:

Ignore pasting images when image format is disallowed by @luin in slab/quill#4202

@linxianxi
Copy link

linxianxi commented Jun 3, 2024

How to resolve it? How to disable quill's default behavior?

@phillipwildhirt
Copy link
Author

We pass a handler to it as per the docs

Finally
If you didnot config a image handler, it will insert the image with dataURL into the quill editor directory after your drop/paste.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants