Migration
Payload Editor replaces repeated lexicalEditor({ features }) assembly and the removed editor export from Payload Fields. It does not migrate stored Lexical JSON.
This page targets 1.1.0; use the
package changelog
to identify version-specific changes from your installed release.
Incremental migration
Section titled “Incremental migration”- Record the native provider keys and options currently used by one collection.
- Choose the closest built-in preset or define an explicit custom preset.
- Disable unwanted managed features.
- Add project-owned providers through
extendFeatures. - Attach the new provider to only that field.
- Compare rendered editing controls and read existing content before migrating the next field.
// BeforelexicalEditor({ features: () => [ParagraphFeature(), BoldFeature()] })
// AftercreateEditor({ features: { paragraph: true, bold: true } })Do not assume preset membership from its name; verify the current feature table. Blocks remain a native extension.
Verification
Section titled “Verification”Boot the Payload config, create/edit/read representative documents, compare generated types, and test any custom nodes or converters. Confirm relationship/upload permissions separately.
Rollback
Section titled “Rollback”Keep the previous native editor factory available until content has been read and written successfully. Because this package does not rewrite stored JSON, rollback normally means restoring the old provider. If custom nodes changed their serialized shape, use the project’s own content migration and backup plan.