Closed niiixx closed 1 year ago
@niiixx Upgrade v5.11.0
import MarkdownEditor from "@uiw/react-markdown-editor";
import "@wcj/dark-mode";
import { useState } from "react";
import "./styles.css";
const code = `# title\n\nHello World!\n\n`;
export default function App() {
const [markdownVal, setMarkdownVal] = useState(code);
console.log("markdownVal:", markdownVal);
return (
<div>
<dark-mode light="Light" dark="Dark"></dark-mode>
<h3>Auto</h3>
<div className="App">
<MarkdownEditor
value={markdownVal}
toolbarsFilter={(tool) => {
if (tool && tool.name === "fullscreen") {
return false;
}
return true;
}}
onChange={(value) => {
setMarkdownVal(value);
}}
/>
</div>
</div>
);
}
Ty! 😄
Is there a way of disabling the fullscreen option on the right side? Couldn't find one.