matt-oconnell/vue-monaco-editor

use options instead of editorOptions

ssevenk opened this issue · 2 comments

In your README.md, we should use this component as

<MonacoEditor
    height="600"
    language="typescript"
    :code="code"
    :editorOptions="options"
    @mounted="onMounted"
    @codeChange="onCodeChange"
    >
</MonacoEditor>

However, the props "editorOptions" doesn't work.
Then I read your source code and find what we should use is "options" rather than "editorOptions", like this:

 <MonacoEditor
    height="600"
    language="typescript"
    :code="code"
    :options="options"
    @mounted="onMounted"
    @codeChange="onCodeChange"
    >
</MonacoEditor>

Hope you fix this error in README.md, thanks!

I find this error too ~

I find this error three ~