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

Can't hide and toggle fullscreen or side-by-side #830

Open
AbigailF opened this issue Feb 20, 2022 · 1 comment
Open

Can't hide and toggle fullscreen or side-by-side #830

AbigailF opened this issue Feb 20, 2022 · 1 comment

Comments

@AbigailF
Copy link

Hello,
I want to hide fullscreen and side-by-side buttons and set default values to fullscreen enabled with side-by-side enabled.
My code:

var simplemde = new SimpleMDE({
            element: document.getElementById("editor"),
            autofocus: true,
            hideIcons: ["guide", "preview", "fullscreen", "side-by-side"]}, );
        simplemde.toggleFullScreen()
        simplemde.toggleSideBySide()

But, when I check website source code the

is empty...

Snímek obrazovky 2022-02-20 v 20 20 57

Is there any options how to hide buttons for fullscreen and side-by-side while having them enabled ?

@gvitalie
Copy link

gvitalie commented Oct 27, 2023

Good morning, even if it is evening.

You can use hideIcons field, but You have a wrong placed comma after }, parenthesis.

Your code

var simplemde = new SimpleMDE({
            element: document.getElementById("editor"),
            autofocus: true,
            hideIcons: ["guide", "preview", "fullscreen", "side-by-side"]}, );

Corrected

var simplemde = new SimpleMDE({
            element: document.getElementById("editor"),
            autofocus: true,
            hideIcons: ["guide", "preview", "fullscreen", "side-by-side"],
});

P.S.: Test-drive SimpleMDE with LaTeX feature

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

No branches or pull requests

2 participants