editor.md start in fullscreen

xvw2m8pv  于 2022-10-27  发布在  其他
关注(0)|答案(1)|浏览(221)

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?

1tu0hz3e

1tu0hz3e1#

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()
    }
  })

相关问题