Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Markdown Preview hide not works #205

Closed
92sajid110 opened this issue Sep 19, 2023 · 3 comments
Closed

Markdown Preview hide not works #205

92sajid110 opened this issue Sep 19, 2023 · 3 comments

Comments

@92sajid110
Copy link

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 added a commit that referenced this issue Sep 22, 2023
jaywcjlove added a commit that referenced this issue Sep 22, 2023
github-actions bot pushed a commit that referenced this issue Sep 22, 2023
@jaywcjlove
Copy link
Member

jaywcjlove commented Sep 22, 2023

@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 added a commit that referenced this issue Sep 22, 2023
github-actions bot pushed a commit that referenced this issue Sep 22, 2023
@92sajid110
Copy link
Author

+    enablePreview={false}

Thanks a lot.
It works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants