vue, how dynamically, programically, on click add component to the DOM specific place?
问题 I need to add a dynamically imported component, just add a virtual tag to specific place in DOM structure. Unfortunately, every method that I found, didn't solve my problem. How I try it first: parent component (Editor.vue): <template> <div> <div class="toolbar"> <button @click="addContainer">ADD CONTAINER</button> </div> <div id="editor" ref="editor" contenteditable="true"> //here, when in conteneditable div is coursor I need to add dynamically, programically virtual tag <container /> </div>