mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 16:58:49 +01:00
This commit is contained in:
parent
117db7d42e
commit
360299d270
1 changed files with 1 additions and 1 deletions
|
|
@ -75,7 +75,7 @@ export const input = async (protyle: IProtyle, blockElement: HTMLElement, range:
|
|||
const refElement = hasClosestByAttribute(range.startContainer, "data-type", "block-ref");
|
||||
if (refElement && refElement.getAttribute("data-subtype") === "d") {
|
||||
const response = await fetchSyncPost("/api/block/getRefText", {id: refElement.getAttribute("data-id")});
|
||||
if (response.data !== refElement.innerHTML) {
|
||||
if (response.data !== refElement.innerHTML.replace("<wbr>", "")) {
|
||||
refElement.setAttribute("data-subtype", "s");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue