editor.md
editor.md copied to clipboard
start in fullscreen
Is there a way to start the editor by default in fullscreen? I didn't find an option for this.
I've noticed I could add the class editormd-fullscreen to the editor-div, but is this the recommended way?
This function is in the source code editormd.toolbarHandlers
get instance call after initialization:
const editormd = editormd(editormdId, {
onload() {
// 1.
editormd.toolbarHandlers.fullscreen.call(editormd)
// 2.
editormd.fullscreen()
}
})