Closed mauro-rogledi closed 7 months ago
@mauro-rogledi
There are two methods to implement:
import MarkdownEditor, { preview, fullscreen } from '@uiw/react-markdown-editor';
const customFullscreen: ICommand = {
...fullscreen,
button: (command, props, opts) => (
<FullscreenButton
onClick={(evn, isFull) => {}}
command={command}
editorProps={{ ...props, ...opts }}
/>
),
};
<MarkdownEditor
value="Hello Markdown!"
height="200px"
toolbarsMode={[
preview, customFullscreen
]}
/>
@mauro-rogledi This is a possible way to achieve your requirements.
Thanks. Update to 6.1.0 version and works.
Is there a way to know when the user switches from normal to full screen mode? Thanks