🎨 添加编辑器设置

This commit is contained in:
Liang Ding 2022-10-31 15:54:58 +08:00
parent fc85a72a1b
commit c24c4f4ef1
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

@ -39,7 +39,9 @@ type Editor struct {
EmbedBlockBreadcrumb bool `json:"embedBlockBreadcrumb"` // 嵌入块是否显示面包屑
ListLogicalOutdent bool `json:"listLogicalOutdent"` // 列表逻辑反向缩进
FloatWindowMode int `json:"floatWindowMode"` // 浮窗触发模式0光标悬停1按住 Ctrl 悬停
DynamicLoadBlocks int `json:"dynamicLoadBlocks"` // 块动态数,可配置区间 [128, 1024]
DynamicLoadBlocks int `json:"dynamicLoadBlocks"` // 块动态数,可配置区间 [48, 1024]
Justify bool `json:"justify"` // 是否两端对齐
RTL bool `json:"rtl"` // 是否从右到左显示
}
func NewEditor() *Editor {
@ -64,5 +66,7 @@ func NewEditor() *Editor {
ListLogicalOutdent: false,
FloatWindowMode: 0,
DynamicLoadBlocks: 128,
Justify: false,
RTL: false,
}
}