-
-
Notifications
You must be signed in to change notification settings - Fork 693
Closed
Labels
Description
Hi there,
I'm exploring the possibility of adding custom blocks (e.g., IF and LOOP) to BlockNote with the following functionality:
-
Custom Blocks:
- Blocks (
IFandLOOP) that include a single-line input field for parameters (e.g.,x > 5orwhile i < 10). - Full editor functionality inside these blocks (text, headings, images, etc.).
- Blocks (
-
Nesting:
- Support for nesting
IFandLOOPblocks within each other or within other content in the editor.
- Support for nesting
-
Slash Menu Integration:
- Allow
IFandLOOPto be added directly via the slash menu.
- Allow
-
Styling:
- Visually distinguish these blocks with borders or other styles.
Additional Context
This functionality is similar to how callouts work in Notion, where you can add any type of content within a callout block. I’m aiming for a similar behavior, but with custom blocks (IF and LOOP) that include an input field for parameters.
Notion_SJ8R9gtvmE.mp4
Questions
- Is it possible to implement custom blocks with nested editor functionality using the current BlockNote framework?
- Can the
BlockSchemaAPI support this kind of nesting structure? - Do you have any guidance or best practices for dynamically rendering and managing nested blocks within the editor?
Both Devin and Replit failed to help me design this.
Thank you in advance for your help! I’d love to know if this aligns with the capabilities of BlockNote or if there are any limitations I should be aware of.
Reactions are currently unavailable