Payload is the open-source, fullstack Next.js framework, giving you instant backend superpowers. Get a full TypeScript backend and admin panel instantly. Use Payload as a headless CMS or for building powerful applications.
In a collection/global, create a richtext field with richtext-lexical as the editor and set the HTMLConverterFeature as a feature, as well as the lexicalHTML() field:
Link to reproduction
No response
Describe the Bug
Lexical JSON:
HTML output:
Having had a look at https://github.com/payloadcms/payload/blob/main/packages/richtext-lexical/src/field/features/lists/htmlConverter.ts, it seems to work as intended if you change
{serializedChildren}
at https://github.com/payloadcms/payload/blob/1c0d43c61a0e29bc9de50a4e608cb7dff9d5cd48/packages/richtext-lexical/src/field/features/lists/htmlConverter.ts#L46 to${childrenText}
. I can't find serializedChildren defined anywhere.The same appears to be the case in https://github.com/payloadcms/payload/blob/1c0d43c61a0e29bc9de50a4e608cb7dff9d5cd48/packages/plugin-form-builder/src/utilities/lexical/converters/list.ts#L43 also.
To Reproduce
In a collection/global, create a richtext field with richtext-lexical as the editor and set the HTMLConverterFeature as a feature, as well as the lexicalHTML() field:
Then, add content to the richtext including checkboxes. See above for the output.
Payload Version
2.11.2
Adapters and Plugins
bundler-webpack, db-mongodb, lexical-richtext