Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using two editor instances in one component #45

Open
haimich opened this issue Jul 12, 2019 · 0 comments
Open

Using two editor instances in one component #45

haimich opened this issue Jul 12, 2019 · 0 comments

Comments

@haimich
Copy link

haimich commented Jul 12, 2019

I am using two editors in my component and noticed that the underlying editor instances don't seem to be separated. When I set the dark theme on one editor the other also uses it instantly.

I also noticed that options set on the one editor (like word wrap) sometimes leak to the other editor. I created a simple app to demonstrate the issue with version 1.0.0 of vue-monaco:

https://codesandbox.io/embed/vue-template-zoejm

It would be nice if the MonacoEditor would manage to separate the instances so they can be configured separately. By the way I never had any issues with leaking of the actual editor content.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant