bazingaedward / monaco-editor-vue3

Monaco Editor for Vue3
MIT License
87 stars 17 forks source link

how to get `monaco-editor` instance? #18

Closed heshimang closed 1 year ago

heshimang commented 1 year ago

I use monaco-editor as sql editor, i want to add sql syntax prompt, I find official document has anguages.registerCompletionItemProvider function, so i how to get monaco-editor instance?

pnhuyduy commented 1 year ago

You can use the editorWillMount event to get monaco instance.