TypeCellOS / BlockNote

A React Rich Text Editor that's block-based (Notion style) and extensible. Built on top of Prosemirror and Tiptap.
https://www.blocknotejs.org/
Mozilla Public License 2.0
6.79k stars 476 forks source link

How to change the placeholder #1242

Closed brijal091 closed 1 week ago

brijal091 commented 2 weeks ago

there is an placeholder which is Enter text or type'/' for commands how can we change it ?

Blapi commented 2 weeks ago
    const editor = useCreateBlockNote({
      dictionary: {
        ...locales.en,
        placeholders: {
          ...locales.en.placeholders,
          default: placeholder ?? locales.en.placeholders.default,
        },
      }
    })

Depending on your locale obviously

YousefED commented 1 week ago

/bounty 10 for adding an example that shows how to change the default placeholder and the placeholder for Headings

algora-pbc[bot] commented 1 week ago

💎 $10 bounty • BlockNote

Steps to solve:

  1. Start working: Comment /attempt #1242 with your implementation plan
  2. Submit work: Create a pull request including /claim #1242 in the PR body to claim the bounty
  3. Receive payment: 100% of the bounty is received 2-5 days post-reward. Make sure you are eligible for payouts

Thank you for contributing to TypeCellOS/BlockNote!

Add a bounty • Share on socials

Attempt Started (GMT+0) Solution
🟢 @ezhil56x Nov 16, 2024, 6:44:26 PM #1252
🔴 @hunxjunedo Nov 16, 2024, 6:45:44 PM WIP
hunxjunedo commented 1 week ago

@YousefED hey can I get assigned please? /attempt #1242

Algora profile Completed bounties Tech Active attempts Options
@hunxjunedo    2 BlockNote bounties
+ 12 bounties from 2 projects
TypeScript, JavaScript,
MDX
Cancel attempt
ezhil56x commented 1 week ago

/attempt #1242 Started working

Algora profile Completed bounties Tech Active attempts Options
@ezhil56x    1 BlockNote bounty
+ 52 bounties from 14 projects
TypeScript, JavaScript,
Go & more
Cancel attempt
algora-pbc[bot] commented 1 week ago

💡 @ezhil56x submitted a pull request that claims the bounty. You can visit your bounty board to reward.