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/5324

Vanessa9f00c3a0bb51
diff --git a/app/src/protyle/gutter/index.ts b/app/src/protyle/gutter/index.ts
index 0f4c7ebd26..b1f879ae50 100644
--- a/app/src/protyle/gutter/index.ts
+++ b/app/src/protyle/gutter/index.ts
@@ -1075,6 +1075,8 @@ export class Gutter {
label: window.siyuan.languages["insert-before"],
accelerator: window.siyuan.config.keymap.editor.general.insertBefore.custom,
click() {
+ nodeElement.classList.remove("protyle-wysiwyg--select")
+ countBlockWord([])
insertEmptyBlock(protyle, "beforebegin", id);
}
}).element);
@@ -1083,6 +1085,8 @@ export class Gutter {
label: window.siyuan.languages["insert-after"],
accelerator: window.siyuan.config.keymap.editor.general.insertAfter.custom,
click() {
+ nodeElement.classList.remove("protyle-wysiwyg--select")
+ countBlockWord([])
insertEmptyBlock(protyle, "afterend", id);
}
}).element);