Roslovets-Inc/strapi-plugin-ckeditor5

Config option for image size

Opened this issue · 1 comments

Zn4rK commented

Hi!

Great plugin!

I would like to see an option to set which file size is used from the media library...

Something along the lines of:

const format = config.image?.format;
const url = prefixFileUrlWithBackendUrl(format && data.formats && data.formats[format] ? data.formats[format].url : data.url);

const url = prefixFileUrlWithBackendUrl(data.url);

My client is always uploads high res images to the media library, and then they use those images in the content, without really thinking of changing it to be the lower res image...

What do you think?

Hi! Interesting idea. Did you try?