mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 23:20:13 +01:00
This commit is contained in:
parent
a3c7ed10ed
commit
5853a077fd
1 changed files with 5 additions and 0 deletions
|
|
@ -251,6 +251,11 @@ export class WYSIWYG {
|
||||||
for (let i = 0; i < attributes.length; i++) {
|
for (let i = 0; i < attributes.length; i++) {
|
||||||
spanElement.setAttribute(attributes[i].name, attributes[i].value);
|
spanElement.setAttribute(attributes[i].name, attributes[i].value);
|
||||||
}
|
}
|
||||||
|
if (spanElement.getAttribute("data-type").indexOf("block-ref") > -1 &&
|
||||||
|
spanElement.getAttribute("data-subtype") === "d") {
|
||||||
|
// 需变为静态锚文本
|
||||||
|
spanElement.setAttribute("data-subtype", "s");
|
||||||
|
}
|
||||||
spanElement.textContent = range.toString();
|
spanElement.textContent = range.toString();
|
||||||
html = spanElement.outerHTML;
|
html = spanElement.outerHTML;
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue