This commit is contained in:
2026-01-12 00:10:37 +01:00
parent 1342276e84
commit 6ad8e6a2f1
2 changed files with 1 additions and 32 deletions

View File

@@ -371,31 +371,7 @@
}
});
}
const ensurePlaceholderBlocks = () => {
if (ed.__bridgePlaceholderActive) {
return true;
}
if (window.BridgeBlocksPlaceholder && typeof window.BridgeBlocksPlaceholder.register === 'function') {
try {
window.BridgeBlocksPlaceholder.register(ed);
ed.__bridgePlaceholderActive = true;
log('PLACEHOLDER SYNC', 'Placeholder-Plugin nachträglich aktiviert.', 'lime');
} catch (err) {
log('PLACEHOLDER ERROR', `Fehler beim Aktivieren des Placeholder-Plugins: ${err.message}`, 'red', 'error');
}
return true;
}
return false;
};
if (!ensurePlaceholderBlocks()) {
const fallbackSrc = B.BASE_PATH_BRIDGE + 'blocks-placeholder.js';
log('PLACEHOLDER LOAD', 'Placeholder-Plugin fehlt lade Fallback-Skript.', '#B45309', 'warn');
loadScript(fallbackSrc, () => {
if (!ensurePlaceholderBlocks()) {
log('PLACEHOLDER ERROR', 'Placeholder-Plugin konnte auch nach Fallback nicht initialisiert werden.', 'red', 'error');
}
});
}
// Placeholder-Plugin entfernt: kein Fallback-Laden.
// ---------------------------------------------------
log('INIT API', 'API-Elemente werden nun durch das Plugin bridge-blocks-api geladen. (ASYNCHRON)', 'orange');