asdasd
This commit is contained in:
@@ -17,13 +17,6 @@
|
||||
files: ['blocks-standard.js'],
|
||||
registration_mode: 'sync',
|
||||
},
|
||||
placeholders: {
|
||||
ord: 5,
|
||||
open: true,
|
||||
label: '🔖 Placeholder',
|
||||
files: ['blocks-placeholder.js'],
|
||||
registration_mode: 'sync',
|
||||
},
|
||||
// --- 2. BAUSTEINE (bausteine) ---
|
||||
bausteine: {
|
||||
// ... (Bleibt unverändert, da es kein API-Async-Laden nutzt)
|
||||
|
||||
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user