asdasd
This commit is contained in:
@@ -371,7 +371,31 @@
|
||||
}
|
||||
});
|
||||
}
|
||||
// Placeholder-Plugin entfernt: kein Fallback-Laden.
|
||||
const ensurePlaceholderRte = () => {
|
||||
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-RTE aktiv.', 'lime');
|
||||
} catch (err) {
|
||||
log('PLACEHOLDER ERROR', `Placeholder-RTE Fehler: ${err.message}`, 'red', 'error');
|
||||
}
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
};
|
||||
if (!ensurePlaceholderRte()) {
|
||||
const fallbackSrc = B.BASE_PATH_BRIDGE + 'blocks-placeholder.js';
|
||||
log('PLACEHOLDER LOAD', 'Placeholder-RTE wird geladen.', '#B45309', 'warn');
|
||||
loadScript(fallbackSrc, () => {
|
||||
if (!ensurePlaceholderRte()) {
|
||||
log('PLACEHOLDER ERROR', 'Placeholder-RTE konnte nicht initialisiert werden.', 'red', 'error');
|
||||
}
|
||||
});
|
||||
}
|
||||
// ---------------------------------------------------
|
||||
|
||||
log('INIT API', 'API-Elemente werden nun durch das Plugin bridge-blocks-api geladen. (ASYNCHRON)', 'orange');
|
||||
|
||||
Reference in New Issue
Block a user