steven-tey / novel

Notion-style WYSIWYG editor with AI-powered autocompletion.
https://novel.sh
Apache License 2.0
12.21k stars 1.02k forks source link

fix: rename updated image type #315

Closed bouceka closed 5 months ago

bouceka commented 5 months ago

Link to the bug: Issue 309

After an image was changed by react-moveable, the type was overridden by "updated-image" which caused the ImageResizer to unrecognize the ContentType, which should be "image."

Before resize:

Screenshot 2024-02-27 at 11 19 45 AM

https://github.com/steven-tey/novel/assets/49728880/4ed7c476-7c0c-46b6-ad6d-d2eaee61e3ac

After resize:

Screenshot 2024-02-27 at 11 20 07 AM

ImageResizer only handles the type "image"

Screenshot 2024-02-27 at 12 40 02 PM

If there is a particular reason to have "updated-image" type feel free to discard this otherwise, this is a tiny fix 😏

vercel[bot] commented 5 months ago

@bouceka is attempting to deploy a commit to the Elegance Team on Vercel.

A member of the Team first needs to authorize it.