[QUESTIONS] addcomponent after the selected component
Question
how do I make it possible to add new components after the component I selected, at this time I use editor.DomComponents.addComponent (block); , but new components are added at the end, not after the selected component, Thank you
Answers (3)
You can also use this to get the index of the component index = editor.getSelected().index()
clear, I use index

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Related Questions and Answers
Continue research with similar issue discussions.
Issue #1951
[QUESTIONS] change or add event on add component from block
is it possible ?, change the drag and drop event to on click when adding a new component, I want to add components by clicking the block th...
Issue #1683
How to change id/class when new element drop on editor or render element with dynamic ip?
Hello @artf , Hope you are doing well. I have two questions regards dynamic blocks adding, 1) Is it possible to render the block with dynam...
Issue #1989
[QUESTIONS] Canvas in Modal
is it possible to make modal that can be a canvas? I want to make a button that displays modal, then I can add the modal component from the...
Issue #1987
[QUESTIONS] Create toolbar in bottom
can I make a new toolbar that is located at the bottom (as shown by the cursor) when selected component? Thank's
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.