From 2e53e7e23812b649635b3b5198727b3edb9aa9ee Mon Sep 17 00:00:00 2001 From: Lars Gebhardt-Kusche Date: Sun, 1 Feb 2026 02:28:56 +0100 Subject: [PATCH] =?UTF-8?q?L=C3=B6schen/Deaktivierung?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/current.ver | 2 +- public/assets/js/ui-editor.js | 8 ++++++-- src/ApiKernel.php | 4 ++-- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/config/current.ver b/config/current.ver index 5975b14..434dcac 100644 --- a/config/current.ver +++ b/config/current.ver @@ -1 +1 @@ -1.2.8 \ No newline at end of file +1.2.9 \ No newline at end of file diff --git a/public/assets/js/ui-editor.js b/public/assets/js/ui-editor.js index 4731608..fed0827 100644 --- a/public/assets/js/ui-editor.js +++ b/public/assets/js/ui-editor.js @@ -180,13 +180,17 @@ export function initEditor() { if (selectionJustChanged && keys.length === 0) return; markDirty(); }; - editor.on('update', onUpdate); editor.on('component:update', onComponentUpdate); + editor.on('component:add', onUpdate); + editor.on('component:remove', onUpdate); + editor.on('style:property:update', onUpdate); editor.on('component:selected', onSelect); return () => { try { - editor.off('update', onUpdate); editor.off('component:update', onComponentUpdate); + editor.off('component:add', onUpdate); + editor.off('component:remove', onUpdate); + editor.off('style:property:update', onUpdate); editor.off('component:selected', onSelect); } catch {} }; diff --git a/src/ApiKernel.php b/src/ApiKernel.php index e2743ba..50e8dc0 100644 --- a/src/ApiKernel.php +++ b/src/ApiKernel.php @@ -2242,12 +2242,12 @@ class ApiKernel if ($hasHtmlAttrs) return true; if (preg_match($jsonTypePattern, $html) && preg_match($jsonIdPattern, $html)) return true; - $libIdPattern = '/data-lib-id\s*=\s*(["\"])' . $id . '\1/i'; + $libIdPattern = '/(?:data-)?lib-id\s*=\s*(["\"])' . $id . '\1/i'; if (preg_match($libIdPattern, $html)) { return true; } - $jsonLibIdPattern = '/"data-lib-id"\s*:\s*("?)(?:' . $id . ')\1/i'; + $jsonLibIdPattern = '/"(?:data-)?lib-id"\s*:\s*("?)(?:' . $id . ')\1/i'; if (preg_match($jsonLibIdPattern, $html)) { return true; }