Skip to content

Commit

Permalink
IBX-8141: Added check if child is Element
Browse files Browse the repository at this point in the history
  • Loading branch information
mateuszdebinski committed Apr 16, 2024
1 parent f3cb1bc commit cb227b7
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 cb227b7

Please sign in to comment.