Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(richtext-lexical): adds support for localized placeholder #10523

Merged

Conversation

akhrarovsaid
Copy link
Contributor

What?

This PR fixes a minor issue in richtext-lexical where editor placeholders were not localized.

Why?

To allow users to localize placeholders accordingly with their language preferences in config.

How?

By evaluating the placeholder in the editor RSC, if any is provided. The ContentEditable component falls back to a default in the event that no placeholder was provided as this was the existing behavior.

Fixes #10518

@AlessioGr AlessioGr enabled auto-merge (squash) January 12, 2025 19:41
@AlessioGr AlessioGr merged commit dc6d79e into payloadcms:main Jan 12, 2025
67 checks passed
@akhrarovsaid akhrarovsaid deleted the fix/lexical-localized-placeholder branch January 12, 2025 21:28
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.

lexicalEditor is missing localized admin.placeholder
2 participants