Closed lofti198 closed 2 years ago
@lofti198 Upgrade v5.7.0
import MarkdownEditor from '@uiw/react-markdown-editor';
const Dome = () => (
<MarkdownEditor
+ previewWidth="100%"
/>
);
Cool! Works awesome, however found strange behavior:
<MarkdownEditor previewWidth="100%" ref={editorRef} style={{ height: "200px", overflow: "scroll", padding: "8px", }} extensions={[EditorView.lineWrapping]} value={markdown} onChange={(value, viewUpdate) => { setMarkdown(value); }} onBlur={(e) => handleDefocus(e)} />
How to spread preview on the whole width (not the half of editor) by default?
Thank you in advance!