fix(richtext-lexical): field.admin overrides were ignored in RenderLexical helper (#14024)
We forgot to spread field.admin, thus you were not able to override this when using `RenderLexical`.
This commit is contained in:
@@ -52,6 +52,8 @@ export const RenderLexical: React.FC<
|
|||||||
...((field as RichTextField) || {}),
|
...((field as RichTextField) || {}),
|
||||||
type: 'richText',
|
type: 'richText',
|
||||||
admin: {
|
admin: {
|
||||||
|
...((field as RichTextField)?.admin || {}),
|
||||||
|
// When using "fake" anchor fields, hidden is often set to true. We need to override that here to ensure the field is rendered.
|
||||||
hidden: false,
|
hidden: false,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user