From 360299d27044b7d9cb8283cad889ed4c1fced85e Mon Sep 17 00:00:00 2001 From: Vanessa Date: Tue, 27 Sep 2022 00:19:38 +0800 Subject: [PATCH] :bug: fix https://github.com/siyuan-note/siyuan/issues/5978 --- app/src/protyle/wysiwyg/input.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/protyle/wysiwyg/input.ts b/app/src/protyle/wysiwyg/input.ts index f75e7923e..9ba3de096 100644 --- a/app/src/protyle/wysiwyg/input.ts +++ b/app/src/protyle/wysiwyg/input.ts @@ -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("", "")) { refElement.setAttribute("data-subtype", "s"); } }