-
-
Notifications
You must be signed in to change notification settings - Fork 521
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
Help needed: Nested Custom Blocks (IF/LOOP) in BlockNote #1368
Comments
See this example for implementing a custom block type: https://www.blocknotejs.org/docs/custom-schemas/custom-blocks |
Yes, custom blocks are straightforward—I’ve worked with them extensively. The real challenge arises when trying to embed a fully functional editor within a block. |
+1 |
same question. |
I currently have the same need, but nested custom blocks don't seem to be possible as of the current v0.25.2 version. |
Hi @ClementNerma, there is no changes yet, I just created an example here #1267 let's see if there are updates in the future. Hope this get fixed 🙏 |
this is currently not possible and not planned (yet). let's track this here: #1540 Feel free to add to the thread what the exact use-cases are |
Hi there,
I'm exploring the possibility of adding custom blocks (e.g.,
IF
andLOOP
) to BlockNote with the following functionality:Custom Blocks:
IF
andLOOP
) that include a single-line input field for parameters (e.g.,x > 5
orwhile i < 10
).Nesting:
IF
andLOOP
blocks within each other or within other content in the editor.Slash Menu Integration:
IF
andLOOP
to be added directly via the slash menu.Styling:
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
andLOOP
) that include an input field for parameters.Notion_SJ8R9gtvmE.mp4
Questions
BlockSchema
API support this kind of nesting structure?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.
The text was updated successfully, but these errors were encountered: