Skip to content

fix(richtext-lexical): use thumbnail component for uploads #12540

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jhuenges
Copy link

What?

Fix the broken thumbnail for non-images for uploads in the richtext-lexical editor.

Before:
before

After:
after

Why?

As described in #6867, the thumbnail in the richtext-lexical editor is always trying to render an thumbnail image. This leads to a broken image as soon as a non-image is added.

How?

The fix was done by using the <Thumbnail /> component from @payloadcms/ui

Fixes #6867

@jhuenges jhuenges changed the title fix(richtext-lexical): Use thumbnail component for uploads fix(richtext-lexical): use thumbnail component for uploads May 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

UploadFeature thumbnail problem in @payload/richtext-lexical when not using image files
1 participant