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

How to create vue-monaco-editor during runtime? #8

Open
weiweiwei256 opened this issue Sep 5, 2017 · 3 comments
Open

How to create vue-monaco-editor during runtime? #8

weiweiwei256 opened this issue Sep 5, 2017 · 3 comments

Comments

@weiweiwei256
Copy link

There is a need that i can append a new monaco to element when a button is clicked. This is my way.
`
<button @click='addMonaco'>add

addMonaco: function() {
let vueClass = Vue.extend(Monaco);
let vueObject = new vueClass({
});
console.log(vueObject)
vueObject.$mount()
console.log(vueObject.$el)
document.getElementById('container').appendChild(vueObject.$el);
},`
result is not satisfied. monaco editor is a tiny black box.(5px,5px). Is There something wrong?

@rockymontana
Copy link

I getting the same result when trying to create multiple tabs with a monaco component in each tab.

@AndreasHeintze
Copy link

@rockymontana Me too! So how can I use multiple vue-monaco-editor components, one under each tab?

@iosimliviu
Copy link

@rockymontana Me too! So how can I use multiple vue-monaco-editor components, one under each tab?
Have you found an answer to this issue?

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

4 participants