mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨编辑器动态加载块数由定值改为可配置 https://github.com/siyuan-note/siyuan/issues/6415
This commit is contained in:
parent
76deb3d0af
commit
998665a171
1 changed files with 2 additions and 0 deletions
|
|
@ -39,6 +39,7 @@ type Editor struct {
|
|||
EmbedBlockBreadcrumb bool `json:"embedBlockBreadcrumb"` // 嵌入块是否显示面包屑
|
||||
ListLogicalOutdent bool `json:"listLogicalOutdent"` // 列表逻辑反向缩进
|
||||
FloatWindowMode int `json:"floatWindowMode"` // 浮窗触发模式,0:光标悬停,1:按住 Ctrl 悬停
|
||||
DynamicLoadBlocks int `json:"dynamicLoadBlocks"` // 块动态数,可配置区间 [128, 1024]
|
||||
}
|
||||
|
||||
func NewEditor() *Editor {
|
||||
|
|
@ -62,5 +63,6 @@ func NewEditor() *Editor {
|
|||
EmbedBlockBreadcrumb: false,
|
||||
ListLogicalOutdent: false,
|
||||
FloatWindowMode: 0,
|
||||
DynamicLoadBlocks: 128,
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue