Closed Ibadichan closed 2 months ago
This could be useful; I will make a decision after delving into the workings of this library.
I tried to use this lib. Except that the border highlighting needs to be adapted by myself, we can use the existing API to focus textarea:
https://imzbf.github.io/md-editor-rt/en-US/docs#%F0%9F%8E%AF%20focus
A great idea
Can you add
textareaRef: func | reactRef
prop to<MdEditor/>
? I am usingreact-hook-form
for form validation and i need to pass input ref to the textarea in order to focus textarea after form submit (if field is invalid).