From 6833761794e54a0395b99bbabe2179062130c695 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Mon, 14 Nov 2022 18:10:37 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=E7=A6=81=E6=AD=A2=E6=96=87=E6=A1=A3?= =?UTF-8?q?=E5=8E=86=E5=8F=B2=E5=86=85=E5=AE=B9=E5=8F=AF=E7=BC=96=E8=BE=91?= =?UTF-8?q?=20Fix=20https://github.com/siyuan-note/siyuan/issues/6580?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/model/history.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/model/history.go b/kernel/model/history.go index 7d800b2eb..15c1bd060 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)