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.79k stars 476 forks source link

refactor: clean extensions #1249

Closed YousefED closed 1 week ago

YousefED commented 2 weeks ago

This PR cleans up the internal registration of extensions / plugins and moves some code from BlockNoteEditor.ts to BlockNoteExtensions.ts.

It also exposes an experimental way to add TipTap extensions or Prosemirror plugins directly via the _extensions option

(code was taken from #980 - but it will be a while before that one gets merged. We can probably still make it a lot cleaner but this is a first sweep at making things more understandable. Make sure to select "hide whitespace" when reviewing)

vercel[bot] commented 2 weeks ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
blocknote ✅ Ready (Inspect) Visit Preview Nov 15, 2024 7:12pm
blocknote-website ✅ Ready (Inspect) Visit Preview Nov 15, 2024 7:12pm
YousefED commented 2 weeks ago

fyi @m-risto, we discussed this earlier this week