Skip to content

✨(frontend) add Alert, Quote, and Divider blocks to the editor #566

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

Closed
wants to merge 2 commits into from

Conversation

arnaud-robin
Copy link
Member

@arnaud-robin arnaud-robin commented Jan 17, 2025

Purpose

Add new block types to better reproduce current text editor experience that user need.

Proposal

  • Introduced new Alert, Quote, and Divider components for enhanced document editing.
  • Updated BlockNoteEditor to include these new block types in the schema.
  • Implemented corresponding slash menu items for easy insertion of these blocks.

Demo

scrnli_N6gLzA1nhLFnks.webm

Sorry, something went wrong.

@arnaud-robin arnaud-robin force-pushed the feature/custom-blocks branch from 6d8a6f0 to c6fa394 Compare January 17, 2025 11:18
@AntoLC AntoLC force-pushed the feature/custom-blocks branch 2 times, most recently from ed799fc to bb38ec3 Compare February 4, 2025 14:35
@AntoLC AntoLC added enhancement improve an existing feature frontend feature add a new feature labels Feb 4, 2025
@AntoLC AntoLC force-pushed the feature/custom-blocks branch 2 times, most recently from fa76faa to 52aa696 Compare February 4, 2025 14:38
arnaud-robin and others added 2 commits February 4, 2025 15:49
- Introduced new Alert, Quote, and Divider components for enhanced document editing.
- Updated BlockNoteEditor to include these new block types in the schema.
- Implemented corresponding slash menu items for easy insertion of these blocks.
- Added translations for new block types and their descriptions in the i18n files.
Move Blocknote styles to separate file.
@AntoLC AntoLC force-pushed the feature/custom-blocks branch from 52aa696 to 0815af4 Compare February 4, 2025 14:51
@AntoLC AntoLC marked this pull request as ready for review February 4, 2025 14:51
@AntoLC AntoLC added the wip label Feb 18, 2025
@AntoLC AntoLC mentioned this pull request Feb 18, 2025
5 tasks
@AntoLC
Copy link
Collaborator

AntoLC commented Feb 18, 2025

We decided to improve the Alert block, we will split this PR, works started here: #646

@AntoLC AntoLC closed this Feb 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement improve an existing feature feature add a new feature frontend wip
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add divider as block type ✨ Create "callout" custom block ✨Quotes
2 participants