Skip to content

blockName of blocks in lexical editor not shown #14650

@roydigerhund

Description

@roydigerhund

Describe the Bug

When adding a custom blockName to blocks inside of an lexical editor, the value is stored in the database and also loaded from the database when reloading (checked the network request) the page, but the blockName will not be rendered.

Bildschirmaufnahme.2025-11-17.um.23.59.04.mov

Link to the code that reproduces this issue

https://github.com/roydigerhund/payload-test

Reproduction Steps

  1. Create a payload project using the official website template npx create-payload-app@latest -t website
  2. Run the project
  3. Open the admin panel http://localhost:3000/admin and create an account
  4. Create a new post
  5. Add a block like "Banner" in the content field
  6. Add a title (blockName) to this block and fill out the other required fields
  7. Save the post
  8. Reload the page

Which area(s) are affected? (Select all that apply)

plugin: richtext-lexical

Environment Info

Binaries:
  Node: 24.11.1
  npm: 11.6.2
  Yarn: 1.22.22
  pnpm: 10.14.0
Relevant Packages:
  payload: 3.64.0
  next: 15.4.7
  @payloadcms/db-sqlite: 3.64.0
  @payloadcms/drizzle: 3.64.0
  @payloadcms/graphql: 3.64.0
  @payloadcms/live-preview: 3.64.0
  @payloadcms/live-preview-react: 3.64.0
  @payloadcms/next/utilities: 3.64.0
  @payloadcms/plugin-form-builder: 3.64.0
  @payloadcms/plugin-nested-docs: 3.64.0
  @payloadcms/plugin-redirects: 3.64.0
  @payloadcms/plugin-search: 3.64.0
  @payloadcms/plugin-seo: 3.64.0
  @payloadcms/richtext-lexical: 3.64.0
  @payloadcms/translations: 3.64.0
  @payloadcms/ui/shared: 3.64.0
  react: 19.1.0
  react-dom: 19.1.0
Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 24.6.0: Mon Jul 14 11:30:55 PDT 2025; root:xnu-11417.140.69~1/RELEASE_ARM64_T6031
  Available memory (MB): 49152
  Available CPU cores: 16

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions