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.46k stars 440 forks source link

Disable options #897

Closed a-Bokhari118 closed 2 months ago

a-Bokhari118 commented 3 months ago

Is your feature request related to a problem? Please describe. I don't want the user to upload audio.

Describe the solution you'd like Toggle options like enable-disable audio or file uploads

YousefED commented 3 months ago

/bounty 15

This is possible by changing the schema (see https://www.blocknotejs.org/docs/custom-schemas). It would be great if someone can add an example (https://www.blocknotejs.org/examples) that shows how to modify the default schema by - in this case - removing the audio block

algora-pbc[bot] commented 3 months ago

💎 $15 bounty • BlockNote

Steps to solve:

  1. Start working: Comment /attempt #897 with your implementation plan
  2. Submit work: Create a pull request including /claim #897 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
🟢 @hunxjunedo Jul 3, 2024, 7:29:47 AM #902
🟢 @sid-sg Jul 3, 2024, 9:30:04 AM WIP
hunxjunedo commented 3 months ago

/attempt #897 having recently contributed to a similar issue, I can work on this. Kindly assign.

Algora profile Completed bounties Tech Active attempts Options
@hunxjunedo 1 bounty from 1 project
JavaScript
Cancel attempt
sid-sg commented 3 months ago

/attempt #897

I've recently worked on a similar issue where I had to remove Video, Audio and File upload options and only have Image upload option from Media upload.

Preview of my work:

bandicam2024-07-0314-57-43-903-ezgif com-video-to-gif-converter

Kindly assign me

hunxjunedo commented 3 months ago

UPDATE: found the solution, proceeding to adding the example to Blocknote website.

algora-pbc[bot] commented 3 months ago

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

algora-pbc[bot] commented 2 months ago

🎉🎈 @hunxjunedo has been awarded $15! 🎈🎊