matt-oconnell / vue-monaco-editor

Monaco Editor Vue Component
MIT License
253 stars 58 forks source link

use options instead of editorOptions #22

Open ssevenk opened 3 years ago

ssevenk commented 3 years ago

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!

XiayidanAlimu commented 1 year ago

I find this error too ~

pengfu commented 6 months ago

I find this error three ~