This commit is contained in:
2026-01-17 04:05:22 +01:00
parent 4e9e9a6ef0
commit 3752a531f1
3 changed files with 77 additions and 7 deletions

View File

@@ -1,5 +1,11 @@
# Mailadmin Email Template System (R17 modular)
Stand: 2025-08-31
Stand: 2026-01-17
## Kurzuebersicht
- Admin UI fuer Templates, Sections und Snippets
- GrapesJS Editor lokal eingebunden (kein CDN)
- Modularer Bridge-Core fuer Blöcke, Kategorien und Editor-Erweiterungen
- JSON API mit Dual-DB und Prefix-Support
## Struktur
mailadmin/
@@ -23,8 +29,12 @@ mailadmin/
ui-editor.js # Editor-Dialog + Handshake
editor/
editor-core.php # LÄDT NUR LOKAL (kein CDN)
bridge-core.js
bridge-core.js # Loader + Guards + Editor-Orchestrierung
config.js # Bibliothek in Block-Leiste
public/assets/js/bridge/
rte-editor.js # RichText-Editor (Modal)
table-builder.js # Table Builder (Modal)
blocks-*.js # Block-Definitionen
## Vendor (lokal bereitstellen)
Lege die GrapesJS-Dateien lokal ab (kein CDN):
@@ -36,10 +46,16 @@ Lege die GrapesJS-Dateien lokal ab (kein CDN):
Nutze `schema.sql` (inkl. *NULLfähiger* Fremdschlüssel & ON DELETE SET NULL).
Prefix standardmäßig: `emailtemplate_`.
## Editor-Flags (window.BridgeParts)
- ENABLE_EDITOR_EXTENSIONS
- ENABLE_EDITOR_BEHAVIOR
- ENABLE_PLACEHOLDERS
- ENABLE_TABLE_BUILDER
- ENABLE_RTE
## Schnellstart
1) `mailadmin/inc/config.php` anlegen (siehe `config.example.php`).
2) `schema.sql` in deiner Templates-Datenbank ausführen.
3) Vendor-Dateien in `public/vendor/...` kopieren.
4) `public/tools/config-doctor.php` & `public/api.php?action=health` prüfen.
5) `public/index.php` öffnen → „Neu …“, „Vorschau“, „Im EMailEditor öffnen“ etc.