mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-21 14:34:06 +01:00
This commit is contained in:
parent
9d27198c70
commit
71110aeead
1 changed files with 5 additions and 2 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue