Commit 07f5c06
feat!: delete richtext-slate (#16359)
**BREAKING:** This PR removes richtext-slate - starting in Payload 4.0,
richtext-lexical is our only supported rich text editor. If you're still
using richtext-slate, please migrate to lexical **before** upgrading to
4.0. If you're not using richtext-slate, this change will not affect you
Slate has been deprecated for a while and we haven't been investing in
it. Removing it cuts a lot of legacy code, reduces the maintenance
overhead and lets us focus rich text work on a single editor going
forward.
## What's removed
- **`@payloadcms/richtext-slate`** package - deleted entirely. It will
no longer be published.
- **Slate → Lexical migration utilities** inside
`@payloadcms/richtext-lexical/migrate`
- **`payload-plugin-lexical` migration utilities**
- **Docs** — all Slate references pruned from the documentation
## What stays
- The **rich text adapter pattern** is unchanged - `editor:
lexicalEditor({})` continues to work exactly as before, and third-party
adapters following the same interface continue to be supported.
## Migration path for users
If you're still on Slate, **do not upgrade to 4.0 yet.** Stay on the
latest 3.x release and follow the [slate => lexical migration
guide](https://payloadcms.com/docs/rich-text/migration).
---
- To see the specific tasks where the Asana app for GitHub is being
used, see below:
- https://app.asana.com/0/0/1214207842694534
---------
Co-authored-by: Copilot <copilot@github.com>1 parent 571ac4c commit 07f5c06
274 files changed
Lines changed: 4855 additions & 24377 deletions
File tree
- .github
- ISSUE_TEMPLATE
- workflows
- .idea
- docs
- getting-started
- migration-guide
- rich-text
- packages
- create-payload-app/src
- payload/src/versions
- plugin-form-builder/src
- collections/FormSubmissions/hooks
- utilities/slate
- richtext-lexical
- src
- exports
- client
- server
- features/migrations
- lexicalPluginToLexical
- converter
- converters
- heading
- link
- listItem
- list
- quote
- unknown
- upload
- nodes/unknownConvertedNode
- slateToLexical
- converter
- converters
- blockquote
- heading
- indent
- link
- listItem
- orderedList
- relationship
- unknown
- unorderedList
- upload
- nodes/unknownConvertedNode
- utilities
- migrateSlateToLexical
- richtext-slate
- src
- cell
- data
- exports
- client
- server
- field
- elements
- blockquote
- h1
- h2
- h3
- h4
- h5
- h6
- indent
- link
- Button
- Element
- LinkDrawer
- li
- ol
- relationship
- Button
- Element
- textAlign
- ul
- upload
- Button
- Element
- UploadDrawer
- icons
- AlignCenter
- AlignLeft
- AlignRight
- Blockquote
- Bold
- Code
- IndentLeft
- IndentRight
- Italic
- Link
- OrderedList
- Relationship
- Strikethrough
- Underline
- UnorderedList
- Upload
- headings
- H1
- H2
- H3
- H4
- H5
- H6
- leaves
- bold
- Bold
- code
- Code
- italic
- Italic
- strikethrough
- Strikethrough
- underline
- Underline
- plugins
- providers
- utilities
- test
- admin
- collections
- e2e/list-view
- dataloader
- fields
- collections/Blocks
- lexical
- collections
- LexicalMigrate
- Lexical/e2e/main
- RichText
- live-preview
- app/live-preview
- _blocks/Relationships
- _components/RichText
- blocks
- ArchiveBlock
- CallToAction
- Content
- collections
- fields
- prod/app/live-preview
- _blocks/Relationships
- _components/RichText
- seed
- localization
- collections
- AllFields
- RichText
- plugin-form-builder
- select
- collections/Pages
- tools/releaser/src/lib
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
60 | 59 | | |
61 | 60 | | |
62 | 61 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
75 | 74 | | |
76 | 75 | | |
77 | 76 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
165 | | - | |
| 165 | + | |
166 | 166 | | |
167 | | - | |
| 167 | + | |
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
56 | 55 | | |
57 | 56 | | |
58 | 57 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | | - | |
12 | | - | |
13 | | - | |
| 11 | + | |
14 | 12 | | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
| 13 | + | |
24 | 14 | | |
25 | 15 | | |
26 | 16 | | |
| |||
0 commit comments