mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-05 15:11:48 +01:00
This commit is contained in:
parent
c202d5a961
commit
18a9d6b245
9 changed files with 25 additions and 0 deletions
|
|
@ -43,6 +43,7 @@ type Editor struct {
|
|||
Justify bool `json:"justify"` // 是否两端对齐
|
||||
RTL bool `json:"rtl"` // 是否从右到左显示
|
||||
Spellcheck bool `json:"spellcheck"` // 是否启用拼写检查
|
||||
BacklinkExpandCount int `json:"backlinkExpandCount"` // 反向链接默认展开数量
|
||||
}
|
||||
|
||||
func NewEditor() *Editor {
|
||||
|
|
@ -69,5 +70,6 @@ func NewEditor() *Editor {
|
|||
DynamicLoadBlocks: 128,
|
||||
Justify: false,
|
||||
RTL: false,
|
||||
BacklinkExpandCount: 8,
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -273,6 +273,9 @@ func InitConf() {
|
|||
if 1024 < Conf.Editor.DynamicLoadBlocks {
|
||||
Conf.Editor.DynamicLoadBlocks = 1024
|
||||
}
|
||||
if 0 > Conf.Editor.BacklinkExpandCount {
|
||||
Conf.Editor.BacklinkExpandCount = 0
|
||||
}
|
||||
|
||||
if nil == Conf.Search {
|
||||
Conf.Search = conf.NewSearch()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue