Previously you could use insertEmbed and a relative file path to insert an image. For apps built locally like in Electron this was very useful. Now it appears the clipboard is sanitizing these relative paths.
Steps for Reproduction
Expected behavior: the image is embedded within the editor
Actual behavior: you get a blank space
Platforms: Electron 1.2.4
Version: V1-rc
You can customize the Image Blot's sanitizer:
var ImageBlot = Quill.import('formats/image');
ImageBlot.sanitize = function(url) {
return url; // No sanitization
};
Awesome thank you!
Most helpful comment
You can customize the Image Blot's sanitizer: