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;
|
||||
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 {}
|
||||
};
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user