Fixes #11082 In addition to fixing the bug described in that issue, I'm fixing the problem where when outdenting, indent 0 blocks stay the same. The new logic verifies that all selected blocks can be outdented. It remains to be done the same with the tab and shift + tab commands.
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.