uiwjs / react-md-editor

A simple markdown editor with preview, implemented with React.js and TypeScript.
https://uiwjs.github.io/react-md-editor
MIT License
2.04k stars 149 forks source link

Setting a minimum height with auto resize #589

Closed erquhart closed 8 months ago

erquhart commented 8 months ago

I'm using height="100%" to automatically adjust height, which is an amazing feature (thank you)!

It seems the editor can only start at a very very small height when using auto height, minHeight doesn't work with it. It's so short that you can't event see the entire cursor:

Screenshot 2023-11-09 at 5 40 44 PM

I would love to be able to set a minimum height of like 200 for my use case, and I imagine most folks using a markdown editor will want a higher default height as well.

Is it possible to get minHeight working so I can set a minimum height? Or at least for the library to provide a better starting height?

Thanks for a great library!

jaywcjlove commented 8 months ago

@erquhart Upgrade v3.25.3

erquhart commented 8 months ago

Holy smokes that was fast, thank you!!