### What? Fix the broken thumbnail for non-images for uploads in the richtext-lexical editor. **Before:**  **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 --------- Co-authored-by: German Jablonski <43938777+GermanJablo@users.noreply.github.com>
Payload Lexical Rich Text Editor
Lexical Rich Text Editor for Payload.
Installation
npm install @payloadcms/richtext-lexical
Usage
import { buildConfig } from 'payload'
import { lexicalEditor } from '@payloadcms/richtext-lexical'
export default buildConfig({
editor: lexicalEditor({}),
// ...rest of config
})
More detailed usage can be found in the Payload Docs.