配置说明:
| 参数 | 类型 | 必须 | 默认 | 说明 |
|---|---|---|---|---|
| type | string | Y | 固定值:ueditor | |
| grid | Array | N | [12, 12, 12, 12] | 栅格布局 |
| name | string | Y | 字段名称 | |
| title | string | Y | 标题 | |
| value | string/int | N | 定义默认值 | |
| attrs | array | N | 编辑器配置,详见ueditor官方文档 |
示例代码:
public function demo(){$assign['buildForm']['items'] = [['type' => 'ueditor','title' => '百度编辑器','name' => 'content','attrs' => ['initialFrameHeight' => 300,'initialFrameWidth' => '80%',],],// 更多表单项.....];return $this->assign($assign)->fetch();}
渲染效果:

