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

feat(richtext-lexical): export INSERT_BLOCK_COMMAND and INSERT_INLINE_BLOCK_COMMAND #11193

Merged
merged 1 commit into from
Feb 14, 2025

Conversation

AlessioGr
Copy link
Member

@AlessioGr AlessioGr commented Feb 14, 2025

Lexical checks commands by reference equality. This means that even if you re-define those commands in your own codebase using the same command type string, they will be treated as different commands.

If you wanted to dispatch the block creation command in your own codebase (e.g. from a different lexical feature, or any component within the editor), this will not be possible right now. See https://discord.com/channels/967097582721572934/1339557113898340352/1339557113898340352

This PR exports them from @payloadcms/richtext-lexical/client

@AlessioGr AlessioGr enabled auto-merge (squash) February 14, 2025 21:16
@AlessioGr AlessioGr merged commit dc36572 into main Feb 14, 2025
77 checks passed
@AlessioGr AlessioGr deleted the feat/lexical-export-block-commands branch February 14, 2025 21:36
Copy link
Contributor

🚀 This is included in version v3.24.0

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