I want to add a security token in my image's src url. I created a custom block
const BlockEmbed = Quill.import('blots/block/embed');
class CustomImage extends BlockEmbed {
static create(d) {
node.dataset.url = d.url;
// How to get the quill instance here? so that I can get some config object and call a method
const uid = this.quill.config.getUid();
node.setAttribute('src', d.url + uid);
...
}
}
Is there any way to get the quill instance for which this create() method was called?