We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0fc89f0 commit ed24d06Copy full SHA for ed24d06
src/index.js
@@ -1,4 +1,4 @@
1
-
+import utils from '@cocreate/utils'
2
import uuid from '@cocreate/uuid'
3
4
const CoCreateClone = {
@@ -101,7 +101,8 @@ const CoCreateClone = {
101
template.parentNode.insertBefore(clonedItem, template);
102
}
103
104
- const domEditorEl = CoCreate.htmlTags.findElementByChild(clonedItem);
+ // const domEditorEl = CoCreate.htmlTags.findElementByChild(clonedItem);
105
+ const domEditorEl = utils.getParentFromElement(clonedItem);
106
if (domEditorEl) {
107
this.__sendMessageOfClone(domEditorEl, clonedItem, cloneId, clone_position);
108
0 commit comments