From 9d33f15e199fb7337c40ef56a917e6254430790b Mon Sep 17 00:00:00 2001 From: Lars Gebhardt-Kusche Date: Fri, 16 Jan 2026 02:34:44 +0100 Subject: [PATCH] sdadsa --- public/assets/js/ui-editor.js | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/public/assets/js/ui-editor.js b/public/assets/js/ui-editor.js index 2ba45be..6816d3e 100644 --- a/public/assets/js/ui-editor.js +++ b/public/assets/js/ui-editor.js @@ -422,24 +422,7 @@ export function initEditor() {   async function save() {     if (!current?.id) return err('Keine aktive ID'); -    const mode = activeMode(); -    if (mode !== 'snippets') { // Nur Templates/Blocks/Sections delegieren, Snippets behalten die alte Logik (NUR HTML) -      return delegateCommand('save-data'); -    } -     -    // Alte Snippet-Logik beibehalten (falls der Snippet-Editor nicht GrapesJS ist und nur HTML erwartet) -    const liveHtml = await readEditedHtml(); - -    const payload = { id: current.id, content: liveHtml }; - -    const res = await apiUpdate(mode, current.id, payload); -    if (!res?.ok) { err('Speichern fehlgeschlagen'); return; } - -    ok('Gespeichert'); -    try { -      if (typeof window.reloadActiveList === 'function') await window.reloadActiveList(); -      else if (typeof window.__reloadList === 'function') window.__reloadList(mode); -    } catch {} +    return delegateCommand('save-data');   }   // ... (Der Rest der Funktionen bleibt unverändert) ...