Replies: 1 comment
-
This should already work const selected = editor.getSelected();
const cloned = selected.clone();
selected.parent().append(cloned, { at: selected.index() }) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
Feature idea:
component.clone(options: CloneOptions)
to clone a component, its children, all linked styles and change ids.Thanks for GrapesJS!
Have a nice day.
Beta Was this translation helpful? Give feedback.
All reactions