Skip to content

Commit

Permalink
update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Jul 8, 2015
1 parent 2d5cfd6 commit 77512c6
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
[![](https://img.shields.io/github/issues/jaywcjlove/MDEditor.svg)](https://github.com/jaywcjlove/MDEditor/issues) [![](https://img.shields.io/github/forks/jaywcjlove/MDEditor.svg)](https://github.com/jaywcjlove/MDEditor/network) [![](https://img.shields.io/github/stars/jaywcjlove/MDEditor.svg)](https://github.com/jaywcjlove/MDEditor/stargazers) [![](https://img.shields.io/github/release/jaywcjlove/MDEditor.svg)](https://github.com/jaywcjlove/MDEditor/releases)

##使用

html

- 添加 `MDEditor.min.css` 样式
- 添加 `MDEditor.min.js` 并不是 ~~`lib/MDEditor.js`~~
- 添加编辑器初始节点
Expand All @@ -19,11 +18,7 @@ html
- maxheight: 编辑器随着输入内容增多而变高,这个值是它的最大值
- value: 默认编辑器中显示markdown内容
</div>
```

js

```js
<script type="text/javascript">
var mde = new MDEditor({
id:"#mdeditor",
minheight:300,
Expand All @@ -33,6 +28,7 @@ var mde = new MDEditor({
console.log("evn:",evn)
console.log("opts:",opts)
})
</script>
```

## MDEditor初始化
Expand Down

0 comments on commit 77512c6

Please sign in to comment.