master
Mark MacKay 2021-06-02 19:05:23 -05:00
parent c2459f435c
commit b04e9ce805
1 changed files with 1 additions and 1 deletions

View File

@ -5844,7 +5844,7 @@ this.setSvgString = function(xmlString) {
// grab the first tspan and apply it to the text element
svgedit.sanitize.svgWhiteList()["text"].forEach(attr => {
const value = tspan.getAttribute(attr);
if (value) {
if (value && attr !== "id" && !attr.includes(":")) {
tspan.removeAttribute(attr);
text.setAttribute(attr, value);
}