diff --git a/src/bundle/Resources/public/js/CKEditor/custom-tags/block-custom-tag/custom-tag-ui.js b/src/bundle/Resources/public/js/CKEditor/custom-tags/block-custom-tag/custom-tag-ui.js index 6b2ba2fd..8396038b 100644 --- a/src/bundle/Resources/public/js/CKEditor/custom-tags/block-custom-tag/custom-tag-ui.js +++ b/src/bundle/Resources/public/js/CKEditor/custom-tags/block-custom-tag/custom-tag-ui.js @@ -120,6 +120,14 @@ class IbexaCustomTagUI extends Plugin { newValues[name] = attributeView.fieldView.element.value; }); + Object.entries(this.formView.attributeViews).forEach(([name, attributeView]) => { + if (newValues[name] !== undefined) { + return; + } + + newValues[name] = attributeView.fieldView.element.value; + }); + this.editor.model.change((writer) => { writer.setAttribute('values', newValues, modelElement); });