gatsby-source-strapi
gatsby-source-strapi copied to clipboard
Image Processing in HTML code
I'm trying to use the "CKEditor 5 for Strapi" plugin but I can't seem to use Gatsby's image processing for images in HTML code.
{
"data": {
"strapiHomepage": {
"content": {
"data": {
"content": "<h1>Homepage</h1><p><img src=\"/uploads/image1.jpg\" alt=\"image1.jpg\"> <src=\"/uploads/image2.jpg\" alt=\"image2.jpg\"></p><p>Welcome on my homepage</p>"
}
}
}
}
}
I tried to add the code below in gatsby-config.js but without success.
singularName: `homepage`,
queryParams: {
content: {
data: {
populate: {
content: "*",
},
},
}
}
The only solution found is to add Strapi's api url as a prefix to the images' url, but this is not the solution sought. Is there a particular configuration for processing images from HTML code? Thanks
I was wondering the same thing. Can anyone shine some light on this?