RichText
Container properties
All component configurations support Container properties at the first level.
Component properties
| Name | Type | Default | Supports Variable Pattern | Description |
|---|---|---|---|---|
| className | string | ✔️ | component's className | |
| style | object | component style | ||
| toolBarProps | object | properties of wangeditor toolbar | ||
| editorProps | object | wangeditor editor's properties | ||
| acceptProps | { img: string, video: string, file: string } | |||
| sizeLimitProps | { img: number, video: number, file: number } |
JS API
The interface obtained through formApi.getFieldApi() is as follows:
| Name | Type | Description |
|---|---|---|
| node | HTML Element | The root DOM element of the component |
| editor | object | Editor instance |