TypeCellOS / BlockNote

A React Rich Text Editor that's block-based (Notion style) and extensible. Built on top of Prosemirror and Tiptap.

Home Page:https://www.blocknotejs.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Custom ToolbarSelect

idntty opened this issue · comments

The documentation says that you can add either your own button(ToolbarButton) or a dropdown list(ToolbarSelect). And there is even a great example of how to do it for a button - https://www.blocknotejs.org/docs/ui-components/formatting-toolbar.

Any attempts to make your own analog of ToolbarSelect - did not lead to success. Is it possible to find somewhere an example how to make your own analog of BlockTypeSelect with your own menu items and actions bound to them?

Seems to be a regression as the example below is broken. Will be fixed in next release