From 0cd0913484df6856f6153c84bd9e2eb17571e0c9 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Mon, 7 Apr 2025 20:40:51 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/14496 --- app/src/protyle/wysiwyg/remove.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/protyle/wysiwyg/remove.ts b/app/src/protyle/wysiwyg/remove.ts index 3c0c22ad9..845c31bb3 100644 --- a/app/src/protyle/wysiwyg/remove.ts +++ b/app/src/protyle/wysiwyg/remove.ts @@ -196,7 +196,7 @@ export const removeBlock = async (protyle: IProtyle, blockElement: Element, rang if (!sideElement) { const backlinkElement = hasClosestByClassName(protyle.element, "sy__backlink", true) if (backlinkElement) { - const backLinkTab = getInstanceById(backlinkElement.getAttribute("data-id")); + const backLinkTab = getInstanceById(backlinkElement.getAttribute("data-id"), window.siyuan.layout.layout); if (backLinkTab instanceof Tab && backLinkTab.model instanceof Backlink) { const editors = backLinkTab.model.editors editors.find((item, index) => {