diff --git a/src/bundle/Resources/public/js/CKEditor/custom-tags/inline-custom-tag/inline-custom-tag-editing.js b/src/bundle/Resources/public/js/CKEditor/custom-tags/inline-custom-tag/inline-custom-tag-editing.js index ff815715..f891517d 100644 --- a/src/bundle/Resources/public/js/CKEditor/custom-tags/inline-custom-tag/inline-custom-tag-editing.js +++ b/src/bundle/Resources/public/js/CKEditor/custom-tags/inline-custom-tag/inline-custom-tag-editing.js @@ -1,6 +1,7 @@ import Plugin from '@ckeditor/ckeditor5-core/src/plugin'; import Widget from '@ckeditor/ckeditor5-widget/src/widget'; import { toWidget } from '@ckeditor/ckeditor5-widget/src/utils'; +import Element from '@ckeditor/ckeditor5-engine/src/view/element'; import IbexaInlineCustomTagCommand from './inline-custom-tag-command'; @@ -92,6 +93,10 @@ class IbexaInlineCustomTagEditing extends Plugin { const values = {}; for (const configValue of configValuesIterator) { + if (configValue instanceof Element === false) { + continue; + } + const value = configValue.getChild(0)?.data ?? null; values[configValue.getAttribute('data-ezvalue-key')] = value;