Hey,
ich nutze öffters inline SVG in Contao, damit ich die SVG über CSS verändern kann. (z.B.: bei hover Farbe ändern)
Über die config.yml habe ich die Einstellungen von Contao angepasst. Dort ist unter allowedTags: svg und path hinzugefügt. Damit ich jetzt nicht jedesmal immer neu unter Einstelungen -> Erlaubte HTML-Attribute noch svg -> height,viewbox,width und path -> d,transform eintragen muß würde ich das gern mit in meine config.yml eintragen.
Weiß jemand wie ich das in der config.yml eintragen muß?
Auszug aus meiner config.yml
Code:
# Backend settings.
localconfig:
adminEmail: "marco@werbeagentur-kopfnuss.de"
allowedTags: <svg><path><a><abbr><acronym><address><area><article><aside><audio><b><bdi><bdo><big><blockquote><br><button><caption><cite><code><col><colgroup><data><datalist><dd><del><dfn><div><dl><dt><em><fieldset><figcaption><figure><footer><form><h1><h2><h3><h4><h5><h6><header><hgroup><hr><i><img><input><ins><kbd><label><legend><li><map><mark><menu><nav><ol><optgroup><option><output><p><picture><pre><q><s><samp><section><select><small><source><span><strong><style><sub><sup><table><tbody><td><textarea><tfoot><th><thead><time><tr><tt><u><ul><var><video><wbr>
dateFormat: d.m.Y
datimFormat: d.m.Y H:i
timeFormat: H:i
folderUrl: false
gdMaxImgHeight: 3000
gdMaxImgWidth: 3000
imageHeight: 3000
imageWidth: 3000
maxFileSize: 8192000
Viele Grüße
Marco
Lesezeichen