Löschen/Deaktivierung
This commit is contained in:
@@ -1 +1 @@
|
|||||||
1.2.8
|
1.2.9
|
||||||
@@ -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 {}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user