Closed d4nm0 closed 10 hours ago
sorry, but i will not help by custom implementation issues.
this problem does not occur per default. So please create a stackoverflow entry or ask at the quilljs repo.
i quick checked your problem. Maybe just overwrite the ImageBlot with your handling. so you have only one image format/blot with your paste handling.
Thanks
Hello,
I'm having a problem with the Quill editor when I paste an image. Currently, the image is inserted twice: once as a URL (after downloading it from my server) and once as a base64 image. My aim is to prevent the image from being inserted as a base64 image and to keep only the URL of the image uploaded to my server.
I've tried to handle this event using a paste listener and a clipboard.addMatcher, but the image continues to be inserted in base64, despite my attempts to prevent it.
I've attached the code I use to detect and handle pasted images. My problem only occurs when I copy and paste an image into the editor. I can't stop Quill from adding the base64 version in addition to the URL.
Do you have any suggestions for solving this problem?
Thanks in advance for your help!
` onEditorCreated(quill: any) { this.quill = quill; // Référence de l'instance Quill
}`