Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Jul 3, 2015
1 parent 69a86d8 commit c3f3628
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ js
var mde = new MDEditor({
id:"#mdeditor",
minheight:300,
maxheight:600
maxheight:600,
value:"#多多少少的"
}).load()
```

Expand All @@ -39,10 +40,23 @@ mde.load()
mde.getMD() //=>返回markdown字符串
```

## setMD
设置markdown的字符串

```js
mde.setMD(val)
```

## getHTML
获取生成的HTML

```js
mde.getMD() //=>返回HTML字符串
```

## setHTML
设置预览的HTML

```js
mde.setHTML(val)
```

0 comments on commit c3f3628

Please sign in to comment.