Link img source

pull/212/head
M66B 1 year ago
parent 60981dc95e
commit bc7ebeb79b

@ -1434,10 +1434,11 @@ public class HtmlHelper {
alt = context.getString(R.string.title_image_link); alt = context.getString(R.string.title_image_link);
} }
if (!TextUtils.isEmpty(alt)) { if (!TextUtils.isEmpty(alt)) {
Element span = document.createElement("span") Element a = document.createElement("a")
.attr("href", src)
.text("[" + alt + "]") .text("[" + alt + "]")
.attr("x-font-size-abs", Integer.toString(textSizeSmall)); .attr("x-font-size-abs", Integer.toString(textSizeSmall));
img.appendChild(span); img.appendChild(a);
} }
} else if (!TextUtils.isEmpty(alt)) { } else if (!TextUtils.isEmpty(alt)) {
Element a = document.createElement("a") Element a = document.createElement("a")

Loading…
Cancel
Save