Pasting a referenced image in Quill produces src="//:0"
Author: DK-PPGCreated Sep 22, 2026Updated Sep 22, 2026
For my use-case, I need to insert an image into quill but the src must not be base64 encoded, so I'm trying to paste an image with src='blob:URL'. When I run the following code:
const imgHtml = this.imageCache[imageId].blobUrl // assume it returns the correct URL this.quill.insertEmbed( range.index, 'image', imgHtml );
The element that gets inserted in dom looks like this:
<img src=//:0"
Any idea why this would be happening?
Thanks
Source: slab/quill