diff --git a/public/editor/bridge-core.js b/public/editor/bridge-core.js index 4415d41..a755fc7 100644 --- a/public/editor/bridge-core.js +++ b/public/editor/bridge-core.js @@ -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'); diff --git a/public/editor/editor-core.php b/public/editor/editor-core.php index 30faed4..496117d 100644 --- a/public/editor/editor-core.php +++ b/public/editor/editor-core.php @@ -49,6 +49,7 @@ if ($fontSources) { window.__editorMode = ""; window.__editorId = ; 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;