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

Author: AbigailFCreated Feb 20, 2022Updated Oct 27, 2023

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 ?

Source: sparksuite/simplemde-markdown-editor