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

Unable to create image blot #4187

Closed
wojtek1150 opened this issue May 7, 2024 · 9 comments · Fixed by #4202
Closed

Unable to create image blot #4187

wojtek1150 opened this issue May 7, 2024 · 9 comments · Fixed by #4202

Comments

@wojtek1150
Copy link

As in title. After limiting allowed formats to not allow passing image whole editor will crash :/

Steps for Reproduction

  1. Go to configuration demo page: https://quilljs.com/docs/configuration
  2. Scroll down to formats
  3. Try to paste image into editor when formats doesn't allow to paste image
image 5. Control is broken

Expected behavior:
Error should not appear, editor should still work (in some demo i saw that there instead of error text is passed into control with unable to paste image

Actual behavior:
Control is broken

Version:
Latest

@kubacee
Copy link

kubacee commented May 8, 2024

i have the same problem

@Zaszczyk
Copy link

Zaszczyk commented May 8, 2024

I have this same issue.

@lighter21
Copy link

Pls fix

@KarolGawrysiuk
Copy link

i have the same problem

@majkelwork
Copy link

Fix man, I have bugs in my app and I'm about to get fired

@bwrksmld
Copy link

bwrksmld commented May 8, 2024

Same issue here, editor becomes unusable after trying to paste image

@FunnyCPP
Copy link

FunnyCPP commented May 9, 2024

Yep, i have same issue. Pls fix

@luin
Copy link
Member

luin commented May 10, 2024

The linked example doesn't have image blot registered (via formats). You can try https://quilljs.com/docs/quickstart. The allowed formats are controlled by registry and formats options, learn more

@luin luin added the question label May 10, 2024
@wojtek1150
Copy link
Author

And it shouldn't be. But control should work without errors. Like when you disallow to use italics or bold. See issue details ...

When I not allow to pass image I expect that when some paste html that include image it should be omitted instead of crashing.

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

Successfully merging a pull request may close this issue.

9 participants