BlockNote icon indicating copy to clipboard operation
BlockNote copied to clipboard

Disabling keyboard input during form submission

Open hampak opened this issue 1 year ago • 0 comments

Is your feature request related to a problem? Please describe.

Hello, I'm making an app where I have a form and I have two fields - the title and the description. For the title, I'm using the <form> tag where I can create a loading state and pass it on to the disabled property. For the description, I'm using the <BlockNoteVioew> tag. However, there isn't a disabled property for the BlockNote editor.

Describe the solution you'd like

I think it'd be useful to create a property (and name it as disabled etc) where we can pass a boolean value which will disable any keyboard inputs while the boolean value is true.

Describe alternatives you've considered

I've tried wrapping the <BlockNoteView> itself in a <input> and <textarea> tag but I couldn't find a way to solve the issue I was having.

Additional context

I'm using

  • NextJS
  • Typescript

Bonus X

hampak avatar May 06 '24 06:05 hampak