Skip to content

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

:art: Improve doc title `Paste as plain text` Fix https://github.com/siyuan-note/siyuan/issues/10866

V51df73d8b104
diff --git a/app/src/protyle/header/Title.ts b/app/src/protyle/header/Title.ts
index 59c8ffb8f6..1473b6f30f 100644
--- a/app/src/protyle/header/Title.ts
+++ b/app/src/protyle/header/Title.ts
@@ -93,6 +93,8 @@ export class Title {
document.execCommand("insertText", false, replaceFileName(content));
this.rename(protyle);
});
+ event.preventDefault();
+ event.stopPropagation();
}
if (matchHotKey(window.siyuan.config.keymap.general.enterBack.custom, event)) {
const ids = protyle.path.split("/");