Skip to content

Commit

Permalink
IBX-8141: Added check if child is Element (#158)
Browse files Browse the repository at this point in the history
  • Loading branch information
mateuszdebinski authored Apr 26, 2024
1 parent 1e5ed43 commit 28aa901
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class IbexaEmbedImageEditing extends Plugin {
const children = viewElement.getChildren();

for (const child of children) {
if (child.getAttribute('data-ezelement') === settingName) {
if (child.is('element') && child.getAttribute('data-ezelement') === settingName) {
return child;
}
}
Expand Down

0 comments on commit 28aa901

Please sign in to comment.