You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How can i dynamically update the placeholder to reflect different things (I'm using Next and Blocknote with mantine library)?
What I want to do is in every 10 seconds, change the placeholder being shown. I tried doing the following but it had no effect: editor.dictionary.placeholders.default = 'New Value'
In createBlockNote, I had put the following too:
dictionary: {
...locale,
placeholders: {
...locale.placeholders,
default: selectedPage
? selectedPage!.init_questions[questionIndex]
: "Enter text or type '/' for commands",
},
},
It didn't work but when I saved the file by changing something else in the file, the placeholder does update so the issue is probably with the re-render. How can i force re-render on the blocknote?
The text was updated successfully, but these errors were encountered:
How can i dynamically update the placeholder to reflect different things (I'm using Next and Blocknote with mantine library)?
What I want to do is in every 10 seconds, change the placeholder being shown. I tried doing the following but it had no effect:
editor.dictionary.placeholders.default = 'New Value'
In createBlockNote, I had put the following too:
It didn't work but when I saved the file by changing something else in the file, the placeholder does update so the issue is probably with the re-render. How can i force re-render on the blocknote?
The text was updated successfully, but these errors were encountered: