Closed rjjrbatarao closed 2 years ago
The README shows an example of how would you fetch a remote file content
{
img: async ed => {
const images = await fetchImagesByStructue(ed.getComponents());
return images;
// Where `images` is an object like this:
// { 'img1.png': '...png content', 'img2.jpg': '...jpg content' }
},
}
Iwas trying to add custom.js on exported zip file, adding css works perfectly since its all text while javascript file might contain hex strings and its getting broken when copied to a file. Sample below breaks dues to hex string in my case.
what I am trying below