payload icon indicating copy to clipboard operation
payload copied to clipboard

Use Lexical HTML serialization

Open GermanJablo opened this issue 1 year ago • 0 comments

Link to reproduction

No response

Environment Info

Payload: beta.112

Describe the Bug

Lexical to HTML serializer in Payload is custom, and we're not using the official Lexical one ($generateHtmlFromNodes and $generateNodesFromDOM). This increases the scope of what we have to maintain.

The goal is to see if we can migrate to $generateHtmlFromNodes and $generateNodesFromDOM without breaking changes.

This would allow us to incorporate this PR that comes in the next release of Lexical: https://github.com/facebook/lexical/pull/6693#event-14617320954 and which is one of our most requested issues: 90990.

NOTE: Perhaps this undocumented API can be useful: https://github.com/facebook/lexical/pull/4254

Reproduction Steps

Adapters and Plugins

No response

GermanJablo avatar Oct 14 '24 13:10 GermanJablo