fix(ui): lexical was incorrectly set to readonly in blocks (#9237)

Fixes a bug introduced in `beta-131` that rendered Lexical fields as
read-only if they were within a block.
This commit is contained in:
James Mikrut
2024-11-15 17:47:26 -05:00
committed by GitHub
parent 30d66bf601
commit 131d1be8fc
5 changed files with 115 additions and 4 deletions

View File

@@ -0,0 +1,22 @@
import type { CollectionConfig } from 'payload'
export const RichText: CollectionConfig = {
slug: 'rich-text',
fields: [
{
name: 'blocks',
type: 'blocks',
blocks: [
{
slug: 'richText',
fields: [
{
name: 'richText',
type: 'richText',
},
],
},
],
},
],
}