富文本
属性 | 类型 | 默认值 | 必填 | 说明 |
|---|---|---|---|---|
| read-only | boolean | false | 设置编辑器为只读 | |
| placeholder | string | 提示信息 | ||
| show-img-size | boolean | false | 点击图片时显示图片大小控件 | |
| show-img-toolbar | boolean | false | 点击图片时显示工具栏控件 | |
| show-img-resize | boolean | false | 点击图片时显示修改尺寸控件 | |
| bindready | eventhandle | 编辑器初始化完成时触发 | ||
| bindfocus | eventhandle | 编辑器聚焦时触发,event.detail = {html, text, delta} | ||
| bindblur | eventhandle | 编辑器失去焦点时触发,detail = {html, text, delta} | ||
| bindinput | eventhandle | 编辑器内容改变时触发,detail = {html, text, delta} | ||
| bindstatuschange | eventhandle | 通过 Context 方法改变编辑器内样式时触发,返回选区已设置的样式 |

<editor
read-only="false"
placeholder="请输入内容..."
show-img-size="true"
show-img-toolbar="true"
show-img-resize="true"
bindready="onEditorReady"
bindfocus="onEditorFocus"
bindblur="onEditorBlur"
bindinput="onEditorInput"
bindstatuschange="onStatusChange">
</editor>