This commit is contained in:
2026-01-19 23:29:05 +01:00
parent 6d85d58194
commit 081b7f3d50
2 changed files with 3 additions and 3 deletions

View File

@@ -1,3 +1,3 @@
Mailadmin ist ein modulares Email-Template-System mit Admin-UI und lokal eingebundenem GrapesJS-Editor. Mailadmin ist ein modulares Email-Template-System mit Admin-UI und lokal eingebundenem GrapesJS-Editor.
Es verwaltet Templates, Sections und Snippets, nutzt eine JSON-API mit Prefix-Support Es verwaltet Templates, Sections und Snippets, nutzt eine JSON-API mit Prefix-Support
und laesst sich ueber Bridge-Module (Blocks, RTE, Table Builder) erweitern. und laesst sich ueber Bridge-Module (Blocks, RTE, Table Builder) erweitern.

View File

@@ -50,10 +50,10 @@
Array.from(el.attributes).forEach((attr) => { Array.from(el.attributes).forEach((attr) => {
const name = attr.name.toLowerCase(); const name = attr.name.toLowerCase();
if (tag === 'a') { if (tag === 'a') {
if (!['href', 'target', 'rel', 'style'].includes(name)) { if (!['href', 'target', 'rel', 'style', 'class'].includes(name)) {
el.removeAttribute(attr.name); el.removeAttribute(attr.name);
} }
} else if (name !== 'style') { } else if (!['style', 'class'].includes(name)) {
el.removeAttribute(attr.name); el.removeAttribute(attr.name);
} }
}); });