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 3, 2015
1 parent b34eff8 commit b27073d
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
# 简易Markdownd编辑器

[![](https://img.shields.io/github/issues/jaywcjlove/MDEditor.js.svg)](https://github.com/jaywcjlove/MDEditor.js/issues) [![](https://img.shields.io/github/forks/jaywcjlove/MDEditor.js.svg)](https://github.com/jaywcjlove/MDEditor.js/network) [![](https://img.shields.io/github/stars/jaywcjlove/MDEditor.js.svg)](https://github.com/jaywcjlove/MDEditor.js/stargazers) [![](https://img.shields.io/github/release/jaywcjlove/MDEditor.js.svg)](https://github.com/jaywcjlove/MDEditor.js/releases)

##使用

html
- 添加 `MDEditor.min.css` 样式
- 添加 `MDEditor.min.js` 并不是 ~~`lib/MDEditor.js`~~
- 添加编辑器初始节点

```html
<link rel="stylesheet" type="text/css" href="../themes/default/css/MDEditor.min.css">
<script type="text/javascript" src="../lib/MDEditor.js"></script>
<script type="text/javascript" src="../build/MDEditor.min.js"></script>
<div id="mdeditor"></div>
```

Expand All @@ -13,16 +20,16 @@ js
```js
var mde = new MDEditor({
id:"#mdeditor",
minheight:200,
maxheight:500
minheight:300,
maxheight:600
}).load()
```

## load
加载编辑器

```js
mde.load() //=>返回markdown字符串
mde.load()
```

## getMD
Expand Down

0 comments on commit b27073d

Please sign in to comment.