13 lines
270 B
Plaintext
13 lines
270 B
Plaintext
```ts
|
|
import { buildConfig } from 'payload'
|
|
import { lexicalEditor } from '@payloadcms/richtext-lexical'
|
|
|
|
export default buildConfig({
|
|
collections: [
|
|
// your collections here
|
|
],
|
|
// Pass the Lexical editor to the root config
|
|
editor: lexicalEditor({}),
|
|
})
|
|
```
|