This commit is contained in:
2026-01-16 02:25:36 +01:00
parent 401255b92a
commit b17537e18f
2 changed files with 22 additions and 10 deletions

View File

@@ -149,11 +149,16 @@
            base + 'categorization-cleanup.js',
        ];
        const initialLoadList = [...coreFiles];
        const initialLoadList = B.DISABLE_EDITOR_EXTENSIONS
            ? [base + 'general-functions.js']
            : [...coreFiles];
        
        function recursiveLoader(list, index = 0) {
            if (index >= list.length) {
                log('LOAD END', 'Initial-Bridge-Skripte geladen.', 'green');
                if (B.DISABLE_EDITOR_EXTENSIONS) {
                    return cb && cb(B);
                }
                
                const config = window.BridgeParts?.CATEGORY_CONFIG || {};
                let allBlockFiles = [];
@@ -247,12 +252,16 @@
        }
let pluginsList = [
safetyPlugin,
// 🛑 KRITISCHE ERGÄNZUNG: Aktiviert das registrierte API-Plugin
'bridge-blocks-api',
'bridge-categorization-master',
'bridge-categorization-cleanup',
safetyPlugin,
];
if (!B.DISABLE_EDITOR_EXTENSIONS) {
pluginsList.push(
// 🛑 KRITISCHE ERGÄNZUNG: Aktiviert das registrierte API-Plugin
'bridge-blocks-api',
'bridge-categorization-master',
'bridge-categorization-cleanup'
);
}
        if (LOAD_NEWSLETTER_PRESET) {
            pluginsList.push('gjs-preset-newsletter');
@@ -1194,7 +1203,9 @@
log('CORE WARN', `textTags Konfiguration fehlgeschlagen: ${e.message}`, 'orange', 'warn');
}
setupTableBuilder(ed);
if (!B.DISABLE_EDITOR_EXTENSIONS) {
setupTableBuilder(ed);
}
setupPlainTextPreserver(ed);
loadDynamicFonts();
@@ -1225,8 +1236,8 @@
        
        log('BLOCK REGISTER', 'Registriere Bridge Blöcke, um Preset-Defaults zu überschreiben.', 'purple');
        // 🛑 DYNAMISCHE AKTIVIERUNG DER SYNCHRONEN BLÖCKE (Ersetzt die fixen Aufrufe)
if (B.CATEGORY_CONFIG && ed) {
// 🛑 DYNAMISCHE AKTIVIERUNG DER SYNCHRONEN BLÖCKE (Ersetzt die fixen Aufrufe)
if (!B.DISABLE_EDITOR_EXTENSIONS && B.CATEGORY_CONFIG && ed) {
log('DYNAMIC ACTIVATION', 'Starte Aktivierung synchroner Block-Plugins (via Config).', 'purple');
// Iteriere über die konfigurierten Kategorien
@@ -1276,7 +1287,7 @@
}
return false;
};
if (!B.DISABLE_PLACEHOLDERS) {
if (!B.DISABLE_EDITOR_EXTENSIONS && !B.DISABLE_PLACEHOLDERS) {
if (!ensurePlaceholderRte()) {
const fallbackSrc = B.BASE_PATH_BRIDGE + 'blocks-placeholder.js';
log('PLACEHOLDER LOAD', 'Placeholder-RTE wird geladen.', '#B45309', 'warn');

View File

@@ -49,6 +49,7 @@ if ($fontSources) {
window.__editorMode = "<?=htmlspecialchars($mode, ENT_QUOTES)?>";
window.__editorId = <?= $id ?>;
window.BridgeParts = window.BridgeParts || {};
window.BridgeParts.DISABLE_EDITOR_EXTENSIONS = true;
window.BridgeParts.LOG_CONFIG = window.BridgeParts.LOG_CONFIG || {};
window.BridgeParts.LOG_CONFIG.INFO_ENABLED = false;
window.BridgeParts.LOG_CONFIG.DATA_ENABLED = false;