Löschen/Deaktivierung

This commit is contained in:
2026-02-01 02:28:56 +01:00
parent f5d2194839
commit 2e53e7e238
3 changed files with 9 additions and 5 deletions

View File

@@ -1 +1 @@
1.2.8 1.2.9

View File

@@ -180,13 +180,17 @@ export function initEditor() {
if (selectionJustChanged && keys.length === 0) return; if (selectionJustChanged && keys.length === 0) return;
markDirty(); markDirty();
}; };
editor.on('update', onUpdate);
editor.on('component:update', onComponentUpdate); 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); editor.on('component:selected', onSelect);
return () => { return () => {
try { try {
editor.off('update', onUpdate);
editor.off('component:update', onComponentUpdate); 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); editor.off('component:selected', onSelect);
} catch {} } catch {}
}; };

View File

@@ -2242,12 +2242,12 @@ class ApiKernel
if ($hasHtmlAttrs) return true; if ($hasHtmlAttrs) return true;
if (preg_match($jsonTypePattern, $html) && preg_match($jsonIdPattern, $html)) 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)) { if (preg_match($libIdPattern, $html)) {
return true; 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)) { if (preg_match($jsonLibIdPattern, $html)) {
return true; return true;
} }