You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
const wrapper = editor.getWrapper();
const existingComponent = wrapper.find('.existing-component')[0];
const selectedComponent = editor.getSelected();
if (selectedComponent) {
const clonedComponent = selectedComponent.clone();
existingComponent.appendChild(clonedComponent); // error while appending
editor.addComponents(clonedComponent); // works perfectly but I need to put clonedComponent inside existingComponent
editor.select(clonedComponent);
}
here, I want to add the clonedComponent inside existingComponent, can anyone help me out
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
here, I want to add the clonedComponent inside existingComponent, can anyone help me out
Beta Was this translation helpful? Give feedback.
All reactions