Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: https://github.com/siyuan-note/siyuan/issues/14496

Daniel0cd0913484df
diff --git a/app/src/protyle/wysiwyg/remove.ts b/app/src/protyle/wysiwyg/remove.ts
index 3c0c22ad90..845c31bb34 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) => {