feat: add print mode #236

This commit is contained in:
Hufe921
2023-08-10 23:56:50 +08:00
parent b54b66d3d4
commit fd31b3e78c
10 changed files with 125 additions and 51 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ new Editor(container, IEditorData | IElement[], {
```typescript
interface IEditorOption {
mode?: EditorMode // Editor mode: Edit, Clean (Visual aids are not displayed, For example: page break), ReadOnly, Form (Only editable within the control). default: Edit
mode?: EditorMode // Editor mode: Edit, Clean (Visual aids are not displayed, For example: page break), ReadOnly, Form (Only editable within the control), Print (Visual aids are not displayed, Unwritten content control). default: Edit
defaultType?: string // Default element type. default: TEXT
defaultFont?: string // Default font. default: Yahei
defaultSize?: number // Default font size. default: 16