Skip to content

Commit ed24d06

Browse files
committed
fix: getParentElement from utils
1 parent 0fc89f0 commit ed24d06

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
1+
import utils from '@cocreate/utils'
22
import uuid from '@cocreate/uuid'
33

44
const CoCreateClone = {
@@ -101,7 +101,8 @@ const CoCreateClone = {
101101
template.parentNode.insertBefore(clonedItem, template);
102102
}
103103

104-
const domEditorEl = CoCreate.htmlTags.findElementByChild(clonedItem);
104+
// const domEditorEl = CoCreate.htmlTags.findElementByChild(clonedItem);
105+
const domEditorEl = utils.getParentFromElement(clonedItem);
105106
if (domEditorEl) {
106107
this.__sendMessageOfClone(domEditorEl, clonedItem, cloneId, clone_position);
107108
}

0 commit comments

Comments
 (0)