melishev / strapi-plugin-react-editorjs

📝 Plugin for Strapi Headless CMS, hiding the standard WYSIWYG editor on Editor.js
https://www.npmjs.com/package/strapi-plugin-react-editorjs
MIT License
171 stars 80 forks source link

Why main image block without hash & ext? #54

Open thenaim opened 2 years ago

thenaim commented 2 years ago

image block after upload:

{
 "data" : {
    "alt": "signature.jpg",
    "formats": {"large": {"ext": ".jpg", "url": "http://minio:9000/strapi/large_image_2e0e164b2d.jpg",…},…}
    "height": 640,
    "mime": "image/jpeg",
    "size": 74.69,
    "url": "http://minio:9000/strapi/image_2e0e164b2d.jpg",
    "width": 1536,
 }
}

Expect Result with hash & ext:

{
 "data" : {
    "alt": "signature.jpg",
    "formats": {"large": {"ext": ".jpg", "url": "http://minio:9000/strapi/large_image_2e0e164b2d.jpg",…},…}
    "hash": "image_2e0e164b2d",
    "ext": ".jpg",
    "height": 640,
    "mime": "image/jpeg",
    "size": 74.69,
    "url": "http://minio:9000/strapi/image_2e0e164b2d.jpg",
    "width": 1536,
 }
}

I'm not exactly sure is strapi passing hash & ext parameters in this line or not. @melishev, What do you think?

ps: formats types all with hash & ext

nhvu1988 commented 2 years ago

@thenaim @melishev I have fixed this issue in PR #45 but... seem it's too long for reviewing?

thenaim commented 2 years ago

@melishev, any news on this?

SalahAdDin commented 2 years ago

@melishev, any news on this?

It seems he is not maintaining this plugin anymore.