Skip to content

Can not get updated generated HTML on beforeChange hook for field type ('richText') in lexical editor #8168

Open
@RiteshMRI

Description

@RiteshMRI

Link to reproduction

No response

Environment Info

Payload: 3.0.0-beta.68
Node.js: 10.7.0
Next.js: 15.0.0-canary.53

Describe the Bug

I have used lexical editor for field of type 'richText', i am not able to get updated generated html in beforeChange hook on save functionality.

Reproduction Steps

  1. create collection which contains richText field using lexical editor.
  2. also add before change hook in hooks.
  3. inside hook, in data, not able to get updated html .

i have also attached screenshot.
payload generated html bug

Adapters and Plugins

@payloadcms/richtext-lexical -> version "3.0.0-beta.68"

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions