diff --git a/web-editor/public/app.js b/web-editor/public/app.js index 0c303c3..aac304e 100644 --- a/web-editor/public/app.js +++ b/web-editor/public/app.js @@ -364,7 +364,9 @@ valid_elements: '*[*]', extended_valid_elements: '*[*]', valid_children: '+body[style]', verify_html: false, convert_urls: false, content_style: 'body{font-family:Arial,Helvetica,sans-serif;font-size:14px;color:#1f2a30;line-height:1.6;padding:10px 12px;} img{max-width:100%;height:auto;} table{border-collapse:collapse;}', - paste_data_images: true, automatic_uploads: false, file_picker_types: 'image', + // Chrome/Edge/Safari entfernen sonst beim Einfügen aus externen Quellen (E-Mails) + // ALLE inline-Styles inkl. Farben ('paste_webkit_styles' default 'none'). 'all' behält sie. + paste_data_images: true, paste_webkit_styles: 'all', automatic_uploads: false, file_picker_types: 'image', file_picker_callback: function (cb) { const input = document.createElement('input'); input.type = 'file'; input.accept = 'image/*'; input.onchange = function () { const file = input.files[0]; if (!file) return; const r = new FileReader(); r.onload = function () { cb(r.result, { title: file.name }); }; r.readAsDataURL(file); };