adamo
January 7, 2025, 9:08am
#1
In my code i’d like to reuse the icons declared in the begining of the site with a code
<svg class="icon icon--96" aria-hidden="true" focusable="true"><use xlink:href="#ux"></use></svg>
The problem is that I cannot configure the editor to leave <use>
tag, even tho its in the allowed attributes options.
How to overcome this limitation?
daft
January 10, 2025, 4:32am
#2
Does it still happen if the <use>
tag is not empty? E.g <use>test</use>
, it may be cleaning up empty tags or considers the tag invalid if used within an SVG.
adamo
January 10, 2025, 3:12pm
#3
I’ve added this to allow empty tags the wierd thing is on local dev it removes the use
tag and on remote it leaved it.