@kyfe/ks-editor
Advanced tools
Comparing version 1.0.3 to 1.0.4
{ | ||
"name": "@kyfe/ks-editor", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "移动端富文本编辑器", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -0,2 +1,14 @@ | ||
* 安装 | ||
``` | ||
npm i @kyfe/ks-editor | ||
``` | ||
* 在项目中引入 | ||
```js | ||
import ksEditor from '@kyfe/ks-editor' | ||
Vue.use(ksEditor) | ||
``` | ||
* 使用示例 | ||
@@ -22,2 +34,3 @@ | ||
``` | ||
* 参数说明 | ||
@@ -27,6 +40,15 @@ | ||
| - | - | - | | ||
|editorConfig|快捷工具栏配置|必填| | ||
|audioDetail|语音信息|非必填| | ||
|editorConfig|快捷工具栏配置|必填| | ||
|tag|同一个页面初始化多个ks-editor时区分使用|非必填| | ||
* 事件 | ||
|事件名|说明| | ||
| - | - | | ||
|audioChange|监听语音回调事件| | ||
|focus|监听聚焦事件| | ||
|blur|监听失去焦点事件| | ||
|input|监听输入事件| | ||
* 语音信息数据结构 `audioDetail` | ||
@@ -78,3 +100,3 @@ | ||
colorPops: [ | ||
// blacke | ||
// black | ||
'#333333', | ||
@@ -87,2 +109,7 @@ // red, | ||
}, | ||
{ | ||
key: 'emoji', | ||
label: '表情', | ||
iconUrl: 'emoji.png', | ||
}, | ||
// 以上为内置选项,如需自定义功能请使用formatter | ||
@@ -89,0 +116,0 @@ { |
Sorry, the diff of this file is too big to display
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
940877
19309
123
0