mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-20 08:30:12 +01:00
✨ 支持设置编辑器只读模式 https://github.com/siyuan-note/siyuan/issues/2648
This commit is contained in:
parent
243db771f2
commit
fe00fb7ead
1 changed files with 2 additions and 0 deletions
|
|
@ -34,6 +34,7 @@ type Editor struct {
|
||||||
PlantUMLServePath string `json:"plantUMLServePath"` // PlantUML 伺服地址
|
PlantUMLServePath string `json:"plantUMLServePath"` // PlantUML 伺服地址
|
||||||
FullWidth bool `json:"fullWidth"` // 是否使用最大宽度
|
FullWidth bool `json:"fullWidth"` // 是否使用最大宽度
|
||||||
KaTexMacros string `json:"katexMacros"` // KeTex 宏定义
|
KaTexMacros string `json:"katexMacros"` // KeTex 宏定义
|
||||||
|
ReadOnly bool `json:"readOnly"` // 只读模式
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewEditor() *Editor {
|
func NewEditor() *Editor {
|
||||||
|
|
@ -53,5 +54,6 @@ func NewEditor() *Editor {
|
||||||
PlantUMLServePath: "https://www.plantuml.com/plantuml/svg/~1",
|
PlantUMLServePath: "https://www.plantuml.com/plantuml/svg/~1",
|
||||||
FullWidth: true,
|
FullWidth: true,
|
||||||
KaTexMacros: "{}",
|
KaTexMacros: "{}",
|
||||||
|
ReadOnly: false,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue