# \[NEW PLUGIN\] BlockNote (Markdown Editor)

**URL:** <https://forum.bubble.io/t/new-plugin-blocknote-markdown-editor/362837>\
**Category:** Plugins\
**Created:** [March 10, 2025, 11:23pm UTC](https://forum.bubble.io/t/new-plugin-blocknote-markdown-editor/362837 "2025-03-10T23:23:44Z")\
**Posts on this page:** 11\
**Page:** 2

<div class="post-metadata">

**Author:** ![kazuma](https://avatars.discourse-cdn.com/v4/letter/k/a6a055/32.png) [@kazuma](https://forum.bubble.io/u/kazuma)\
**Post date:** [May 28, 2025, 10:57pm UTC](https://forum.bubble.io/t/new-plugin-blocknote-markdown-editor/362837/22 "2025-05-28T22:57:36Z")

</div>

Hey @tomo.hitoma.bubble , I’m looking into integrating the toggle feature in BlockNote (outside of Bubble) but ran into a blocker where I cannot nest blocks inside a custom toggle block. I noticed your plugin includes this functionality, and I’m curious how you managed it?

Did you manage to do this purely with BlockNote or did it require some workarounds? If you’re open to chatting about it, I’d really appreciate any insights!

---

<div class="post-metadata">

**Author:** ![tomo.hitoma.bubble](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/tomo.hitoma.bubble/32/249203_2.png) [@tomo.hitoma.bubble](https://forum.bubble.io/u/tomo.hitoma.bubble)\
**Post date:** [May 30, 2025, 9:51am UTC](https://forum.bubble.io/t/new-plugin-blocknote-markdown-editor/362837/23 "2025-05-30T09:51:37Z")

</div>

@kazuma  
Hi! Thank you for your question about the toggle feature.

To be honest, it wasn’t possible to implement it with pure BlockNote alone. I had to come up with a few workarounds and custom solutions:

Main ideas and customizations:

1. **Custom state management system (ToggleStore)**

- Persisting the open/closed state of toggles
- Temporarily storing and restoring child blocks when a toggle is closed

1. **Dynamic child block handling**

- Manually adding and removing child blocks with `editor.updateBlock()`
- The default BlockNote child block management had some limitations

1. **Custom event handling**

- Monitoring state changes with `editor.onChange()` callbacks
- Avoiding conflicts with BlockNote’s default behaviors

I used BlockNote’s core features as a base, but added my own custom logic to fill in the gaps where needed.

I hope this helps! If you have any further questions or want details about the implementation, feel free to ask!

---

<div class="post-metadata">

**Author:** ![buero](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/buero/32/31435_2.png) [@buero](https://forum.bubble.io/u/buero)\
**Post date:** [June 2, 2025, 4:10pm UTC](https://forum.bubble.io/t/new-plugin-blocknote-markdown-editor/362837/24 "2025-06-02T16:10:28Z")

</div>

hey any updates about your feature of accept and decline?

there is even a full tool just doing and offering this. (launched this week) The businesscase is real

> **[Tyce](https://www.tyce.ai/)**
>
> The AI Agent for Smarter Documents - Tyce helps you craft the best deals, contracts, documents - in seconds.

---

<div class="post-metadata">

**Author:** ![tomo.hitoma.bubble](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/tomo.hitoma.bubble/32/249203_2.png) [@tomo.hitoma.bubble](https://forum.bubble.io/u/tomo.hitoma.bubble)\
**Post date:** [June 4, 2025, 3:09pm UTC](https://forum.bubble.io/t/new-plugin-blocknote-markdown-editor/362837/25 "2025-06-04T15:09:14Z")

</div>

Hi there, and thank you so much for your interest!

The feature has already been tested locally, and I’m currently working on the integration with Bubble.  
Here’s a demo video of the plugin running in a local environment:

[![](https://img.youtube.com/vi/0Ok1SdEL4iA/maxresdefault.jpg "BlockNote Plugin – AI Features Demo") ](https://www.youtube.com/watch?v=0Ok1SdEL4iA)

Note: The chat panel on the right is for local testing only and is not included in the plugin.

Using [Bubble.io](http://Bubble.io)’s API streaming functionality, users will be able to freely use their preferred AI models and prompts.  
By including tags like `[streaming]`, `[insert]`, and `[replace]` in the AI response, and passing properties such as `isStreaming` and `isDone` from Bubble, streaming responses become possible.

In addition to options like dialog width, color, and accept/reject buttons, I’ve also added support for specifying the `left` value of the sidemenu, which was previously requested.

Final testing is underway, and I’m planning to release it next week.  
Please stay tuned!

---

<div class="post-metadata">

**Author:** ![buero](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/buero/32/31435_2.png) [@buero](https://forum.bubble.io/u/buero)\
**Post date:** [June 4, 2025, 3:44pm UTC](https://forum.bubble.io/t/new-plugin-blocknote-markdown-editor/362837/26 "2025-06-04T15:44:21Z")

</div>

wooooowwww - that looks stunning - believe me people will love this - you should rebrand it and publish it again awwwesome!!!

let me know when it is ready i will be the first to test it

---

<div class="post-metadata">

**Author:** ![tomo.hitoma.bubble](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/tomo.hitoma.bubble/32/249203_2.png) [@tomo.hitoma.bubble](https://forum.bubble.io/u/tomo.hitoma.bubble)\
**Post date:** [June 14, 2025, 2:10am UTC](https://forum.bubble.io/t/new-plugin-blocknote-markdown-editor/362837/27 "2025-06-14T02:10:34Z")

</div>

Hi Bubblers!  
✨ **I’m excited to introduce BlockNote (Markdown Editor) with new AI features (Beta)!**  
This update brings real-time AI-powered editing capabilities to the BlockNote Editor.

[![](https://img.youtube.com/vi/TivYNe9iDKo/maxresdefault.jpg "BlockNote Plugin (Bubble.io) – AI Features Demo") ](https://www.youtube.com/watch?v=TivYNe9iDKo)

🧪 **Demo app:** [BlockNote (Markdown Editor)](https://tomo-plugins.bubbleapps.io/blocknote)  
✏ **Editor here:** [tomo-plugins | Bubble Editor](https://bubble.io/page?id=tomo-plugins&tab=Workflow&name=blocknote&type=page&wf_item=bTKoE1&version=live)  
📦 **Plugin page:** [BlockNote (Markdown Editor) Plugin | Bubble](https://bubble.io/plugin/blocknote-markdown-editor-1738327144764x425244011352031200)

✅ **Key Features**

- **AI streaming support** – See AI responses appear directly in the editor in real time
- **Simple command format** – Just include `[insert]`, `[replace]`, or `[delete]` inside `[streaming][/streaming]` tags
- **Flexible AI integration** – Connect to OpenAI, Anthropic, or any other AI provider via Bubble’s API Connector
- **Full BlockNote block support** – Compatible with all block types including headings, lists, toggles, tables, and more

✅ **How It Works**

1. Design a workflow that sends user instructions to your AI of choice
2. The AI returns a response with commands inside `[streaming]` tags
3. The plugin parses the commands and applies insertions, replacements, or deletions
4. The editor updates live with the AI’s actions

✅ **Supported Commands**

- **Insert** : `[insert, line_number, line_number]` → Add new content
- **Replace** : `[replace, start_line, end_line]` → Replace selected content
- **Delete** : `[delete, start_line, end_line]` → Delete content from selected lines

📄 **For setup instructions, please refer to the documentation:**  
[https://tomo-plugins.notion.site/BlockNote-Markdown-Editor-1b16a2d7a73f804eadbfe69b971673a4](https://tomo-plugins.notion.site/BlockNote-Markdown-Editor-1b16a2d7a73f804eadbfe69b971673a4)

🎨 You can freely customize the AI dialog, diff highlights, and button styles to match your app.

🔧 The plugin is still in active development, so feel free to share any bugs or suggestions!

@buero @joaquintorroba  
Thanks again for your support — it’s finally live, and I’d love for you to try it out! 🙌

---

<div class="post-metadata">

**Author:** ![buero](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/buero/32/31435_2.png) [@buero](https://forum.bubble.io/u/buero)\
**Post date:** [June 14, 2025, 12:39pm UTC](https://forum.bubble.io/t/new-plugin-blocknote-markdown-editor/362837/28 "2025-06-14T12:39:28Z")

</div>

This is so needed and thanks for the great work - i will check it out soon!

---

<div class="post-metadata">

**Author:** ![produccion1](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/produccion1/32/255722_2.png) [@produccion1](https://forum.bubble.io/u/produccion1)\
**Post date:** [June 24, 2025, 7:21am UTC](https://forum.bubble.io/t/new-plugin-blocknote-markdown-editor/362837/29 "2025-06-24T07:21:11Z")

</div>

heyy! How about custom blocks? Can we be able to customize block names, add/delete blocks…? It will be awesome to customize it and adapt it more to each use case

---

<div class="post-metadata">

**Author:** ![tomo.hitoma.bubble](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/tomo.hitoma.bubble/32/249203_2.png) [@tomo.hitoma.bubble](https://forum.bubble.io/u/tomo.hitoma.bubble)\
**Post date:** [June 24, 2025, 11:20am UTC](https://forum.bubble.io/t/new-plugin-blocknote-markdown-editor/362837/30 "2025-06-24T11:20:29Z")

</div>

@produccion1  
Thanks for your message!

Custom blocks like **Toggle** , **Callout** , and **Divider** already support renaming and showing/hiding in the current plugin.  
**The same also applies to standard blocks** like headings, paragraphs, bullet lists, and more — you can customize their labels or disable them entirely.

 ![Screenshot 2025-06-24 at 20.11.10](https://us1.discourse-cdn.com/bubble/original/3X/6/7/67714a99beb66f99ca807528990d43515455a3ac.png)

However, creating entirely new types of blocks from the Bubble editor isn’t possible — this would require writing custom code.

Hope this helps!

---

<div class="post-metadata">

**Author:** ![produccion1](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/produccion1/32/255722_2.png) [@produccion1](https://forum.bubble.io/u/produccion1)\
**Post date:** [June 25, 2025, 2:34pm UTC](https://forum.bubble.io/t/new-plugin-blocknote-markdown-editor/362837/31 "2025-06-25T14:34:25Z")

</div>

Nice! can i be able to try before buying so i can test for a few days if this customization can fit my project? thank you!

---

<div class="post-metadata">

**Author:** ![tomo.hitoma.bubble](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/tomo.hitoma.bubble/32/249203_2.png) [@tomo.hitoma.bubble](https://forum.bubble.io/u/tomo.hitoma.bubble)\
**Post date:** [June 26, 2025, 8:30am UTC](https://forum.bubble.io/t/new-plugin-blocknote-markdown-editor/362837/32 "2025-06-26T08:30:34Z")

</div>

Yes, a trial is available!  
If you share your app ID, I can set up free access for two weeks.  
You can find the app ID in the URL of your Bubble editor — it appears after `id=` (e.g., `bubble.io/page?id=your-app-id`).

If you have any questions, feel free to reach out!

[Previous page](https://forum.bubble.io/t/new-plugin-blocknote-markdown-editor/362837.md?page=1)
