From 4b30d2f85b6ae70e14b7eca514befff3d6eada76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Grabowski?= Date: Fri, 2 Aug 2024 12:08:17 +0200 Subject: [PATCH] IBX-7694: Richtext custom tag attributes don't have effect on existing tags (#173) --- .../custom-tags/block-custom-tag/custom-tag-ui.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) 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..af6a9fc6 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 @@ -110,13 +110,7 @@ class IbexaCustomTagUI extends Plugin { this.isNew = false; - Object.keys(values).forEach((name) => { - const attributeView = this.formView.attributeViews[name]; - - if (!attributeView) { - return; - } - + Object.entries(this.formView.attributeViews).forEach(([name, attributeView]) => { newValues[name] = attributeView.fieldView.element.value; });