Skip to content

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

:rotating_light:

Vanessab244f8aed18e
diff --git a/app/src/protyle/wysiwyg/keydown.ts b/app/src/protyle/wysiwyg/keydown.ts
index 2d6b76e765..f711c21d3b 100644
--- a/app/src/protyle/wysiwyg/keydown.ts
+++ b/app/src/protyle/wysiwyg/keydown.ts
@@ -1600,7 +1600,7 @@ export const keydown = (protyle: IProtyle, editorElement: HTMLElement) => {
ignoreIllegals: true
}).value + "<br>");
range.setStart(wbrElement.nextSibling, 0);
- const brElement = wbrElement.parentElement.querySelector("br")
+ const brElement = wbrElement.parentElement.querySelector("br");
range.setEnd(brElement.previousSibling, brElement.previousSibling.textContent.length);
brElement.remove();
updateTransaction(protyle, nodeElement.getAttribute("data-node-id"), nodeElement.outerHTML, oldHTML);