Skip to content

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

:art: fix https://github.com/siyuan-note/siyuan/issues/11697

Vanessaa34b73551d75
diff --git a/app/src/protyle/wysiwyg/input.ts b/app/src/protyle/wysiwyg/input.ts
index cf2534db89..44a98f4e80 100644
--- a/app/src/protyle/wysiwyg/input.ts
+++ b/app/src/protyle/wysiwyg/input.ts
@@ -84,7 +84,7 @@ export const input = async (protyle: IProtyle, blockElement: HTMLElement, range:
brElement.remove();
}
- if (editElement.innerHTML === "》<wbr>" || editElement.innerHTML.indexOf("\n》<wbr>") > -1) {
+ if (editElement.innerHTML.startsWith("》<wbr>") || editElement.innerHTML.indexOf("\n》<wbr>") > -1) {
editElement.innerHTML = editElement.innerHTML.replace("》<wbr>", "><wbr>");
}
const trimStartText = editElement.innerHTML.trimStart();