Skip to content

Commit 90bdc10

Browse files
authored
Merge pull request #454 from FromDoppler/doi-2075-fix-atributos
fix: do not set attribute if data dc type is present
2 parents 1d19bc3 + 3ff3198 commit 90bdc10

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Doppler.HtmlEditorApi/Domain/DopplerHtmlDocument.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,10 @@ public void SanitizeDynamicContentNodes()
110110
}
111111
}
112112
var imgNode = dynamicContentNodes[i].SelectSingleNode(".//img");
113-
imgNode?.SetAttributeValue("src", "[[[DC:IMAGE]]]");
113+
if (imgNode != null && imgNode.GetAttributeValue("data-dc-type", null) == null)
114+
{
115+
imgNode.SetAttributeValue("src", "[[[DC:IMAGE]]]");
116+
}
114117
}
115118
}
116119
}

0 commit comments

Comments
 (0)