feat(richtext-lexical)!: initialize lexical during sanitization (#6119)
BREAKING: - sanitizeFields is now an async function - the richText adapters now return a function instead of returning the adapter directly
This commit is contained in:
@@ -568,6 +568,9 @@ export const mapFields = (args: {
|
||||
style: field.admin?.style,
|
||||
width: field.admin?.width,
|
||||
}
|
||||
if (typeof field?.editor === 'function') {
|
||||
throw new Error('Attempted to access unsanitized rich text editor.')
|
||||
}
|
||||
|
||||
const RichTextFieldComponent = field.editor.FieldComponent
|
||||
const RichTextCellComponent = field.editor.CellComponent
|
||||
|
||||
Reference in New Issue
Block a user