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
Currently I am unable to change the height of the editor based on the screen. Is there any way we can fix it ?
Here is how my current editor setting is looking like:
importReact,{Fragment,useState}from"react";importReactDOMfrom"react-dom";importMDEditor,{selectWord}from"@uiw/react-md-editor";import"./index.css";constmkdStr=`# Markdown Editor---**Hello world!!!**[![](https://avatars.githubusercontent.com/u/1680273?s=80&v=4)](https://avatars.githubusercontent.com/u/1680273?v=4)\`\`\`javascriptimport React from "react";import ReactDOM from "react-dom";import MEDitor from '@uiw/react-md-editor';\`\`\``;functionApp(){const[height,setHeight]=useState(300);const[value,setValue]=useState(mkdStr);conststyl={ height };return(<Fragment><inputtype="number"value={height}onChange={(evn)=>setHeight(Number(evn.target.value))}/>{height}<divclassName="container"style={styl}><MDEditorheight="100%"value={value}onChange={setValue}/></div></Fragment>);}ReactDOM.render(<App/>,document.getElementById("container"));
Currently I am unable to change the height of the editor based on the screen. Is there any way we can fix it ?
Here is how my current editor setting is looking like:
I am expecting the setting something like the below based on the screen size:
The text was updated successfully, but these errors were encountered: