This commit is contained in:
2025-12-06 00:24:46 +01:00
parent 7ed1dab3c5
commit 7637c567e2
3 changed files with 38 additions and 22 deletions

View File

@@ -43,12 +43,12 @@
    window.__bridgeCoreInitialized = true;
    
    // --- Initialisierung BridgeParts (B) und Plugin-Registry ---
    B.BASE_PATH_BRIDGE = '../assets/js/bridge/';
    B.BASE_PATH_CONFIG = B.BASE_PATH_BRIDGE; 
    // NEU: Standard-API-Endpunkt für Fallbacks, falls category-config.js ihn nicht setzt.
    // **KORREKTUR**: Auf '/api/editor' FIX eingestellt.
    B.API_BASE = '/api/editor'; // <<< FIX AUF /api/editor
    B.STORAGE_URL_BASE = '/api/editor'; // <<< FIX: Erzwingt, dass auch der Storage Manager diesen Pfad verwendet
B.BASE_PATH_BRIDGE = '../assets/js/bridge/';
B.BASE_PATH_CONFIG = B.BASE_PATH_BRIDGE;
const apiFallback = '/api.php';
B.API_BASE = B.API_BASE || apiFallback;
B.STORAGE_URL_BASE = B.STORAGE_URL_BASE || B.API_BASE;
B.API_KERNEL_URL = B.API_KERNEL_URL || B.API_BASE;
    
    B.GrapesJSPlugins = []; 
    
@@ -377,9 +377,10 @@
            },
        };
        var ed = grapesjs.init({
            container: '#gjs',
            height: '100vh',
var ed = grapesjs.init({
container: '#gjs',
height: '100vh',
noticeOnUnload: 0,
            
            // 🛑 KRITISCHE KORREKTUR: storageManager aktivieren und konfigurieren
            storageManager: storageConf,