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

Add $ prefix to updateToolbar on react-rich example #5887

Merged
merged 1 commit into from
Apr 17, 2024

Conversation

2wheeh
Copy link
Contributor

@2wheeh 2wheeh commented Apr 13, 2024

Should this be with $ prefix ?

Copy link

vercel bot commented Apr 13, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
lexical ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 13, 2024 9:19pm
lexical-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 13, 2024 9:19pm

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Apr 13, 2024
@potatowagon
Copy link
Contributor

related discussion about $ prefix: #1800 (comment)

Copy link
Contributor

@potatowagon potatowagon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

makes sense to prefix $ since the fn touches the editor state

cross reference: $ is prefixed here in a similar usecase: https://github.com/facebook/lexical/blame/a951969b63e03717ee28f30fdae15a7805e94bd8/packages/lexical-playground/src/plugins/ToolbarPlugin/index.tsx#L549

theres also

which could benefit from this change too

lgtm!

@2wheeh
Copy link
Contributor Author

2wheeh commented Apr 15, 2024

@potatowagon hi, looks like your last comment might have landed on the wrong PR 😋

@potatowagon
Copy link
Contributor

@potatowagon hi, looks like your last comment might have landed on the wrong PR 😋

haha oh dear silly me thanks for letting me know! 😅

@acywatson acywatson merged commit 39e6f1f into facebook:main Apr 17, 2024
45 checks passed
@2wheeh 2wheeh deleted the prefix-on-rich-example branch April 18, 2024 01:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants