Skip to content

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

:art: https://github.com/siyuan-note/siyuan/issues/14956

Vanessaf660b2ddfa98
diff --git a/app/src/protyle/toolbar/index.ts b/app/src/protyle/toolbar/index.ts
index 4250fdf2eb..d85b283c2c 100644
--- a/app/src/protyle/toolbar/index.ts
+++ b/app/src/protyle/toolbar/index.ts
@@ -1087,7 +1087,8 @@ export class Toolbar {
}
});
this.subElementCloseCB = () => {
- if (!renderElement.parentElement || protyle.disabled || oldTextValue === textElement.value) {
+ if (!renderElement.parentElement || protyle.disabled ||
+ (oldTextValue === textElement.value && textElement.value)) {
return;
}
let inlineLastNode: Element;