Skip to content

Commit

Permalink
docs: add editor placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
Hufe921 committed Jun 7, 2023
1 parent 5ded5c3 commit 3a371e6
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docs/guide/option.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ interface IEditorOption {
checkbox?: ICheckboxOption; // 复选框信息。{width?:number; height?:number; gap?:number; lineWidth?:number; fillStyle?:string; fontStyle?: string;}
cursor?: ICursorOption; // 光标样式。{width?: number; color?: string; dragWidth?: number; dragColor?: string;}
title?: ITitleOption; // 标题配置。{ defaultFirstSize?: number; defaultSecondSize?: number; defaultThirdSize?: number defaultFourthSize?: number; defaultFifthSize?: number; defaultSixthSize?: number;}
placeholder?: IPlaceholder; // 编辑器空白占位文本
}
```

Expand Down Expand Up @@ -105,4 +106,16 @@ interface IWatermark {
size?: number; // 字体大小。默认:200
font?: string; // 字体。默认:Yahei
}
```

## 占位文本配置

```typescript
interface IPlaceholder {
data: string; // 文本。
color?: string; // 颜色。默认:#DCDFE6
opacity?: number; // 透明度。默认:1
size?: number; // 字体大小。默认:16
font?: string; // 字体。默认:Yahei
}
```

0 comments on commit 3a371e6

Please sign in to comment.