From fe28779608357a362dff52953cb59f2133bde398 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Sat, 4 Oct 2025 17:10:35 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/15989 10 --- app/src/protyle/wysiwyg/transaction.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/protyle/wysiwyg/transaction.ts b/app/src/protyle/wysiwyg/transaction.ts index 9721848df..6aea88ffa 100644 --- a/app/src/protyle/wysiwyg/transaction.ts +++ b/app/src/protyle/wysiwyg/transaction.ts @@ -698,7 +698,7 @@ export const onTransaction = (protyle: IProtyle, operation: IOperation, isUndo: } } else if (updateElements.length > 0) { const parentElement = protyle.wysiwyg.element.querySelectorAll(`[data-node-id="${operation.parentID}"]`); - if (!protyle.options.backlinkData && operation.parentID === protyle.block.parentID) { + if (!protyle.options.backlinkData && operation.parentID === protyle.block.parentID && !protyle.block.showAll) { protyle.wysiwyg.element.prepend(processClonePHElement(updateElements[0].cloneNode(true) as Element)); hasFind = true; } else if (parentElement.length === 0 && protyle.options.backlinkData && isUndo && getSelection().rangeCount > 0) { @@ -800,7 +800,7 @@ export const onTransaction = (protyle: IProtyle, operation: IOperation, isUndo: }); } else { const parentElement = protyle.wysiwyg.element.querySelectorAll(`[data-node-id="${operation.parentID}"]`); - if (!protyle.options.backlinkData && operation.parentID === protyle.block.parentID) { + if (!protyle.options.backlinkData && operation.parentID === protyle.block.parentID && !protyle.block.showAll) { protyle.wysiwyg.element.insertAdjacentHTML("afterbegin", operation.data); cursorElements.push(protyle.wysiwyg.element.firstElementChild); } else if (parentElement.length === 0 && protyle.options.backlinkData && isUndo && getSelection().rangeCount > 0) {