feat(richtext-lexical): mdx support (#9160)
Supports bi-directional import/export between MDX <=> Lexical. JSX will be mapped to lexical blocks back and forth. This will allow editing our mdx docs in payload while keeping mdx as the source of truth --------- Co-authored-by: Germán Jabloñski <43938777+GermanJablo@users.noreply.github.com>
This commit is contained in:
@@ -141,6 +141,7 @@ export const RscEntrySlateField: React.FC<
|
||||
defaultIDType: payload.config.db.defaultIDType,
|
||||
fields: args.admin?.link?.fields as Field[],
|
||||
i18n,
|
||||
importMap: payload.importMap,
|
||||
})
|
||||
|
||||
componentMap.set(linkFieldsSchemaPath, clientFields)
|
||||
@@ -172,6 +173,7 @@ export const RscEntrySlateField: React.FC<
|
||||
defaultIDType: payload.config.db.defaultIDType,
|
||||
fields: args?.admin?.upload?.collections[collection.slug]?.fields,
|
||||
i18n,
|
||||
importMap: payload.importMap,
|
||||
})
|
||||
|
||||
componentMap.set(`${uploadFieldsSchemaPath}.${collection.slug}`, clientFields)
|
||||
|
||||
Reference in New Issue
Block a user