<MonacoEditor
class="editor"
ref="editor"
v-model="code"
theme="gCodeFirst"
language="GCodeLanguage"
@editorWillMount="editorDidMount"
:options="options"
>
</MonacoEditor>
editorDidMount (editor) {
// Register a new language
editor.languages.register({ id: 'GCodeLanguage' })
var e = this.$refs.editor.getEditor()
console.log(e)
...............................................
...............................................
in the console I get undefined
this.$refs.editor ==> also does not give access to the instance
I need to use functions like getPosition(), setPosition() but i can't access the editor instance, only to the model
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too