Closed RamiroPastor closed 3 years ago
This is an editor, not an input, I don’t think placeholder
needed @RamiroPastor
Well, I was using placeholder just to try how textareaProps work, the readOnly property won't work either.
Furthermore, textareas are often used in forms to collect user input
<MDEditor
textareaProps={{
disabled: true
}}
//....
/>
@RamiroPastor
This is an editor, not an input, I don’t think
placeholder
needed @RamiroPastor
Placeholders can be used to show the user what will be automatically entered if they leave the editor or input blank.
I was debugging for around 20 minutes before finding this issue. I had to revert to v2.1.8 to get this functionality back. If you don't want to support this feature going forward, removing the placeholder props or putting that information somewhere would be nice.
@ninthworld @RamiroPastor Upgrade + @uiw/react-md-editor@3.0.3
<MDEditor
textareaProps={{
placeholder: 'test ....'
}}
//....
/>
const textareaProps = { placeholder: "Add Something cool" }
<MDEditor height={200} value={value} onChange={setValue} textareaProps={textareaProps} />
Hi, I want to use this package but I have some basic problems, like the placeholder not working. This is my code:
And I'm using this MarkdownArea component like this:
But the placeholder is not working. Also any insights on how to integrate this textarea with react-hook-form will be appreciated