From bf78cf03b6a0ea74ed4731135394763496ccd0ee Mon Sep 17 00:00:00 2001 From: Vanessa Date: Sun, 26 Jan 2025 11:54:00 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/12175 --- app/src/protyle/ui/initUI.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/protyle/ui/initUI.ts b/app/src/protyle/ui/initUI.ts index 46488d422..6b10d3022 100644 --- a/app/src/protyle/ui/initUI.ts +++ b/app/src/protyle/ui/initUI.ts @@ -121,7 +121,7 @@ export const initUI = (protyle: IProtyle) => { if (event.y > lastRect.bottom) { const lastEditElement = getContenteditableElement(getLastBlock(protyle.wysiwyg.element.lastElementChild)); if (!lastEditElement || - (protyle.wysiwyg.element.lastElementChild.getAttribute("data-type") !== "NodeParagraph" && protyle.wysiwyg.element.getAttribute("data-doc-type") !== "NodeListItem") || + (protyle.wysiwyg.element.lastElementChild.getAttribute("data-type") !== "NodeParagraph" && protyle.wysiwyg.element.getAttribute("data-doc-type") !== "NodeListItem" && !protyle.options.backlinkData) || (protyle.wysiwyg.element.lastElementChild.getAttribute("data-type") === "NodeParagraph" && getContenteditableElement(lastEditElement).innerHTML !== "")) { const emptyElement = genEmptyElement(false, false); protyle.wysiwyg.element.insertAdjacentElement("beforeend", emptyElement);