package monaco_jsoo

  1. Overview
  2. Docs

Module Monaco_jsoo.EditorSource

Sourcetype _t
Sourcemodule Option : sig ... end

Options for the editor functions and methods.

Sourcemodule Id : Mid.S

Calls monaco.editor.create to create an editor over the given DOM element.

Sourceval updateOptions : t -> [< Option.editor | Option.globalEditor ] Moption.t array -> unit

Call updateOptions method to update options of the editor

Sourceval getModel : t -> TextModel.t

getModel t returns the text model of the editor t

Sourceval getId : t -> Id.t

https://microsoft.github.io/monaco-editor/api/interfaces/monaco.editor.IEditor.html#getId

Sourceval deltaDecorations : old:Decoration.Id.t array -> new_:Decoration.deltaDecoration_t array -> t -> Decoration.Id.t array

https://microsoft.github.io/monaco-editor/api/interfaces/monaco.editor.ICodeEditor.html#deltaDecorations

OCaml

Innovation. Community. Security.