vue-monaco-editor
vue-monaco-editor copied to clipboard
use options instead of editorOptions
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 ~