vue-monaco-editor icon indicating copy to clipboard operation
vue-monaco-editor copied to clipboard

use options instead of editorOptions

Open ssevenk opened this issue 4 years ago • 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!

ssevenk avatar Feb 03 '21 07:02 ssevenk

I find this error too ~

XiayidanAlimu avatar Dec 16 '22 10:12 XiayidanAlimu

I find this error three ~

pengfu avatar Apr 26 '24 01:04 pengfu