-
-
Notifications
You must be signed in to change notification settings - Fork 33
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
Switch to fullscreen #217
Comments
jaywcjlove
added a commit
that referenced
this issue
Mar 14, 2024
jaywcjlove
added a commit
that referenced
this issue
Mar 14, 2024
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. |
jaywcjlove
added a commit
that referenced
this issue
Mar 14, 2024
Thanks. |
@mauro-rogledi can you share a working example |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is there a way to know when the user switches from normal to full screen mode?
Thanks
The text was updated successfully, but these errors were encountered: