Skip to content

Conversation

romainpi
Copy link
Contributor

@romainpi romainpi commented Oct 21, 2025

Hey, this is the full alternative to #14235

To recall this was in order to have lexicalHTML fields hidden from the list views by default with disableListColumn set to true by default.

This patch brings the full admin object:

  • Export FieldAdmin type from payload core package for proper typing
  • Add admin param to lexicalHTML (fixed editorOptions properties)
  • Deprecate hidden parameter in favor of the admin object
  • Maintain compatibility by preserving existing hidden parameter
  • Plan removal of deprecated hidden property for v4.0 with notices

This patch also sets disableListColumn to true by default, which can be overriden by specifying it in the optional admin property.

Note

Please review the modified jsdocs - it uses the @since jsdoc tag presuming this patch (ever) makes it to 3.61

I've not actually tested this, tell me if you consider merging this.

Regards,

@romainpi romainpi requested a review from AlessioGr as a code owner October 21, 2025 12:57
@romainpi romainpi changed the title Feat richtext lexical full admin object feat(richtext-lexical): full admin object Oct 21, 2025
@romainpi
Copy link
Contributor Author

I guess I should have tested the code :)

@romainpi romainpi force-pushed the feat-richtext-lexical-full-admin-object branch from 4e4e568 to b3727ee Compare October 22, 2025 09:31
- Export `FieldAdmin` type from payload core package for proper typing
- Add `admin` param to lexicalHTML (fixed `editorOptions` properties)
- Deprecate `hidden` parameter in favor of the admin object
- Maintain compatibility by preserving existing `hidden` parameter
- Plan removal of deprecated `hidden` property for v4.0 with notices
@romainpi romainpi force-pushed the feat-richtext-lexical-full-admin-object branch from b3727ee to 21b6fa8 Compare October 23, 2025 07:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant