Skip to content

Commit

Permalink
更新修复例子
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Aug 17, 2015
1 parent 809c38c commit 25f3bd0
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion test/test.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,39 @@
<body>
<div id="mdeditor" class="mdeditor">
<pre># 简易Markdownd编辑器

[![](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)

## 使用
##使用

[预览MDEditor](http://jaywcjlove.github.io/MDEditor)

- 添加 `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="../build/MDEditor.min.js"></script>
<div id="mdeditor">
# 这里放markdown初始值
- id: 节点id
- minheight: 初始化编辑器高度
- maxheight: 编辑器随着输入内容增多而变高,这个值是它的最大值
- value: 默认编辑器中显示markdown内容
</div>
<script type="text/javascript">
var mde = new MDEditor({
id:"#mdeditor",
minheight:300,
maxheight:600,
value:"#多多少少的"
}).load().input(function(evn,opts){
console.log("evn:",evn)
console.log("opts:",opts)
})
</script>
```

## MDEditor初始化

Expand Down

0 comments on commit 25f3bd0

Please sign in to comment.