提交 3004f599 编写于 作者: 璃白.'s avatar 璃白. 🌻

Update README.md

上级 9216bb56
......@@ -78,7 +78,7 @@ new MdEditor({
| showWordLimit | 是否显示当前字数 | Boolean | false | |
| rows | 编辑区行数 | String \| Number | 6 | 'auto' |
| throttle | input事件的节流时间 | Number | 1000 | |
| filePathRule | 图片链接的格式限制 | RegExp | | |
| filePathRule | 图片链接的格式限制 | RegExp | [示例](#filepathrule) | |
| themeOptions | 主题颜色配置 | Object | [themeOptions](#themeoptions)
| toolsOptions | 顶部工具栏配置 | Object | [toolsOptions](#toolsoptions)
| canPreview | 是否开启预览 | Boolean | true
......@@ -128,6 +128,18 @@ new MdEditor({
| fullScreen | 全屏模式 | Boolean | true
# filePathRule
用于限制可上传文件的路径规则
```js
new MdEditor({
...,
filePathRule: /^https:\/\/csdn\.net/
})
```
# onLoad
编辑器实例化后触发
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册