@monaco-editor/react
Advanced tools
Changelog
4.0.3
path
, defaultLanguage
and saveViewState
for multi-model supportChangelog
4.0.1
Changelog
4.0.0
@monaco-editor/loader
) version to - v1.0.0
useMonaco
hookuseMonaco
from the entry fileeditorDidMount
to onMount
onMount
as a second argument (first is the editor instance)beforeMount
prop: function with a single argument -> monaco instancedefaultModelPath
prop, use it as a default model pathdefaultValue
prop and use it during default model creationonChange
prop) to listen default model content change_isControlledMode
proporiginalModelPath
and modifiedModelPath
props, use them as model paths for original/modified modelsEditor
component, now, handles both controlled and uncontrolled modesprop-types
to dependenciesonValidate
prop: an event emitted when the length of the model markers of the current model isn't 0Changelog
3.8.3
options
prop type nameChangelog
3.8.2
@monaco-editor/loader
as a dependency@monaco-editor/loader
instead of monaco
utility@monaco-editor/loader
@monaco-editor/loader
usePrevious
hookRollup
as a build system; now, we have bundles for cjs/es/umd