Skip to content

Commit

Permalink
feat: 发布版本
Browse files Browse the repository at this point in the history
  • Loading branch information
Jesonhu committed Jan 27, 2019
1 parent 3e0ee50 commit 3f3109f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,23 @@ Tips: 通过 `webpack` 导出为 `umd` 类型的文件。故支持以下几种
```


#### 方式2 npm
```cmd
npm i cool-md-editor --save
```

```js
const MdEditor = require('cool-md-editor');
require('cool-md-editor/dist/coolMdEditor.css');

new MdEditor({
el: document.getElementById('editor-wrap'),
defaultCon: '# 这是默认内容,任意填写'
});
```


### [结构梳理](https://www.processon.com/view/link/5b88dc49e4b0534c9bc51b33)
<!-- ### [结构梳理](https://www.processon.com/view/link/5b88dc49e4b0534c9bc51b33) -->

### 说明

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cool-md-editor",
"version": "1.2.0-beta.6",
"version": "1.2.0",
"description": "a markedown editor width webpack & codemirror & marked & highlight",
"main": "dist/coolMdEditor.js",
"unpkg": "dist/coolMdEditor.js",
Expand Down

0 comments on commit 3f3109f

Please sign in to comment.