Closed softmarshmallow closed 4 days ago
Found it. - import { locales } from "@blocknote/core";
import { useCreateBlockNote } from "@blocknote/react";
import { locales } from "@blocknote/core";
const editor = useCreateBlockNote({
dictionary: {
...locales.en,
placeholders: {
...locales.en.placeholders,
default: placeholder || locales.en.placeholders.default,
},
},
});
Thanks for sharing your fix! Fyi if you're interested in contributing, this (custom block placeholder) might be a cool example for the website (https://www.blocknotejs.org/examples)
Below won't work, I don't see a way to get a default dictionary value and only override picked ones.
Attepmp to customize placeholder (initial - for default, only when provided by user)