feat: add defaultColor option #405

This commit is contained in:
Hufe921
2024-01-12 23:08:30 +08:00
parent 5272c85bbe
commit a324ecc417
5 changed files with 10 additions and 4 deletions
+1
View File
@@ -16,6 +16,7 @@ new Editor(container, IEditorData | IElement[], {
interface IEditorOption {
mode?: EditorMode // 编辑器模式:编辑、清洁(不显示视觉辅助元素。如:分页符)、只读、表单(仅控件内可编辑)、打印(不显示辅助元素、未书写控件及前后括号)。默认:编辑
defaultType?: string // 默认元素类型。默认:TEXT
defaultColor?: string // 默认字体颜色。默认:#000000
defaultFont?: string // 默认字体。默认:Microsoft YaHei
defaultSize?: number // 默认字号。默认:16
minSize?: number // 最小字号。默认:5