Skip to content

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

:bug: 禁止文档历史内容可编辑 Fix https://github.com/siyuan-note/siyuan/issues/6580

Liang Ding6833761794e5
diff --git a/kernel/model/history.go b/kernel/model/history.go
index 7d800b2eb2..15c1bd0608 100644
--- a/kernel/model/history.go
+++ b/kernel/model/history.go
@@ -202,6 +202,8 @@ func GetDocHistoryContent(historyPath, keyword string) (id, rootID, content stri
historyTree = renderTree
}
+ // 禁止文档历史内容可编辑 https://github.com/siyuan-note/siyuan/issues/6580
+ luteEngine.RenderOptions.ProtyleContenteditable = false
if isLargeDoc {
util.PushMsg(Conf.Language(36), 5000)
formatRenderer := render.NewFormatRenderer(historyTree, luteEngine.RenderOptions)