From fe00fb7ead79cd1b4c0eda112566c65732613061 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Tue, 11 Oct 2022 20:00:59 +0800 Subject: [PATCH] =?UTF-8?q?:sparkles:=20=E6=94=AF=E6=8C=81=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E7=BC=96=E8=BE=91=E5=99=A8=E5=8F=AA=E8=AF=BB=E6=A8=A1?= =?UTF-8?q?=E5=BC=8F=20https://github.com/siyuan-note/siyuan/issues/2648?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/conf/editor.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/conf/editor.go b/kernel/conf/editor.go index 383a515dd..8705fc06f 100644 --- a/kernel/conf/editor.go +++ b/kernel/conf/editor.go @@ -34,6 +34,7 @@ type Editor struct { PlantUMLServePath string `json:"plantUMLServePath"` // PlantUML 伺服地址 FullWidth bool `json:"fullWidth"` // 是否使用最大宽度 KaTexMacros string `json:"katexMacros"` // KeTex 宏定义 + ReadOnly bool `json:"readOnly"` // 只读模式 } func NewEditor() *Editor { @@ -53,5 +54,6 @@ func NewEditor() *Editor { PlantUMLServePath: "https://www.plantuml.com/plantuml/svg/~1", FullWidth: true, KaTexMacros: "{}", + ReadOnly: false, } }