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
5.97k stars 392 forks source link

Placeholder for custom block types #754

Open sunillarsson opened 1 month ago

sunillarsson commented 1 month ago

I've tried using custom placeholders for custom block types without any luck. Is it possible at this point of time?

YousefED commented 1 month ago

I haven't tried this myself, but you could experiment with adding your blocktype to the dictionary.placeholders (https://github.com/TypeCellOS/BlockNote/blob/bea361e39846c26d9729a777a5cd3de1f48e8c3e/packages/core/src/i18n/locales/en.ts#L108). Also see https://www.blocknotejs.org/examples/basic/localization

Let me know how this goes!