<bst-editor/>
富文本编辑器组件
基于 wangeditor
二次封装的富文本编辑器组件。
Props
参数 | 说明 | 类型 | 默认值 |
height | 编辑内容区高度 | Number | 300 |
menus | 菜单 | Array | 如下 |
defaultHtml | 默认编辑内容 | String | "" |
hasPreview | 是否支持预览 | Boolean | false |
菜单默认值:
["head","bold","fontSize","fontName","italic","underline","strikeThrough","lineHeight","foreColor","backColor","link","list","justify","quote","emoticon","image","table","code","undo","redo",]
Methods
方法名 | 说明 | 参数 | 返回值 |
setHtml | 设置内容 | html | void |
getHtml | 获取内容 | - | String |
Events
事件名称 | 说明 |
input | 内容变化之后派发input事件 |
Slots
编辑此文档 (opens new window)