docs(richtext): fix typos and other issues

This commit is contained in:
Alessio Gravili
2023-10-09 04:34:50 +02:00
parent bdbfc8c9af
commit 27ba1fc79e
3 changed files with 9 additions and 9 deletions

View File

@@ -27,7 +27,7 @@ To use the Lexical editor, first you need to install it:
npm install --save @payloadcms/richtext-lexical
```
Once you have it installed, you can pas it to your top-level Payload config as follows:
Once you have it installed, you can pass it to your top-level Payload config as follows:
```ts
import { buildConfig } from 'payload/config'

View File

@@ -15,4 +15,4 @@ These editors are built on an "adapter pattern" which means that you will need t
The big TL;DR here is that Slate is what we have used in the past, and we still support it for existing projects, but if you're building something new and you're feeling adventurous, you should give Lexical a shot. Slate has a lot of good stuff, but Lexical has lots more.
No matter which editor you use, you can install either at the top-level on the `config.editor` property, which will then cascade throughout all of your rich text fields and be used accordingly. But you can also override the editor on a field-by-field basis if you'd like.
No matter which editor you use, you have to install it at the top-level on the `config.editor` property, which will then cascade throughout all of your rich text fields and be used accordingly. Additionally, you also have the option to override the editor on a field-by-field basis if you'd like.

View File

@@ -353,5 +353,5 @@ The plugin itself extends Payload's built-in `shouldBreakOutOnEnter` Slate funct
If you are building your own custom Rich Text elements or leaves, you may benefit from importing the following types:
```ts
import type { RichTextCustomElement, RichTextCustomLeaf } from 'payload/types'
import type { RichTextCustomElement, RichTextCustomLeaf } from '@payloadcms/richtext-slate'
```