uiwjs / react-markdown-editor

A markdown editor with preview, implemented with React.js and TypeScript.
https://uiwjs.github.io/react-markdown-editor
MIT License
338 stars 33 forks source link

Markdown Preview hide not works #205

Closed 92sajid110 closed 1 year ago

92sajid110 commented 1 year ago

I want to hide Preview but not works. toolbarsMode={["fullscreen"]}

But it shows approx 10px of preview on right and preview button is hidden previewProps={{ style:{display:none} }} same result not hiding completely

jaywcjlove commented 1 year ago

@92sajid110 Upgrade v5.12.1

import React from "react";
import MarkdownEditor from '@uiw/react-markdown-editor';

const Dome = () => (
  <MarkdownEditor
    value="Hello Markdown!"
    height="200px"
+    enablePreview={false}
  />
);
jaywcjlove commented 1 year ago

https://codesandbox.io/embed/react-markdown-editor-https-github-com-uiwjs-react-markdown-editor-issues-205-c3kqhd?fontsize=14&hidenavigation=1&theme=dark

92sajid110 commented 1 year ago
+    enablePreview={false}

Thanks a lot. It works.