editor.md icon indicating copy to clipboard operation
editor.md copied to clipboard

start in fullscreen

Open Tone866 opened this issue 4 years ago • 1 comments

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?

Tone866 avatar Mar 01 '22 09:03 Tone866

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

one-dragon avatar Mar 22 '22 07:03 one-dragon