This commit is contained in:
Vanessa 2023-04-20 18:43:14 +08:00
parent 9d27198c70
commit 71110aeead

View file

@ -488,8 +488,11 @@ ${unicode2Emoji(emoji.unicode, true)}</button>`;
tempElement.innerHTML = value.replace(/<mark>/g, "").replace(/<\/mark>/g, "");
tempElement = tempElement.firstElementChild as HTMLDivElement;
if (refIsS) {
tempElement.setAttribute("data-subtype", "s");
tempElement.innerText = range.toString().replace(this.splitChar, "");
const staticText = range.toString().replace(this.splitChar, "")
if (staticText) {
tempElement.setAttribute("data-subtype", "s");
tempElement.innerText = staticText;
}
}
protyle.toolbar.setInlineMark(protyle, "block-ref", "range", {
type: "id",