Skip to content

Commit e10e445

Browse files
authored
fix(richtext-slate): add 'li' string literal to RichTextElement type (payloadcms#12693)
Fixes payloadcms#12160
1 parent 6f82154 commit e10e445

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

docs/rich-text/slate.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ The default `elements` available in Payload are:
8181
- `link`
8282
- `ol`
8383
- `ul`
84+
- `li`
8485
- `textAlign`
8586
- `indent`
8687
- [`relationship`](#relationship-element)

packages/richtext-slate/src/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ export type RichTextElement =
4141
| 'h5'
4242
| 'h6'
4343
| 'indent'
44+
| 'li'
4445
| 'link'
4546
| 'ol'
4647
| 'relationship'

0 commit comments

Comments
 (0)