-
-
Notifications
You must be signed in to change notification settings - Fork 471
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: added placeholder example #1252
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@ezhil56x is attempting to deploy a commit to the TypeCell Team on Vercel. A member of the Team first needs to authorize it. |
This only works for en locales, if your locale is set to french it won't work, how would you handle that depending on the user locale then? |
@Blapi Updated, now the user locale can be set |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice, some requests commented, then we should be good
const editor = useCreateBlockNote({ | ||
dictionary: { | ||
...locales[userLocale], | ||
placeholders: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Besides the default, please also show how you can change the "heading" placeholder
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add a comment to explain code
// We override the `placeholders` in our dictionary
ef431a8
to
776cf32
Compare
2024-11-18.10-06-45.mp4@YousefED Updated my PR |
Fixes #1242
/claim #1242
Added an example for placeholder