diff --git a/test/test.html b/test/test.html index 54eb869..76e4572 100644 --- a/test/test.html +++ b/test/test.html @@ -8,47 +8,17 @@
# 简易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) -```js -mde.getMD() //=>返回markdown字符串 -``` - -##使用 - -html - 添加 `MDEditor.min.css` 样式 - 添加 `MDEditor.min.js` 并不是 ~~`lib/MDEditor.js`~~ 哦 - 添加编辑器初始节点 -```html - - -+-# 这里放markdown初始值 -- id: 节点id -- minheight: 初始化编辑器高度 -- maxheight: 编辑器随着输入内容增多而变高,这个值是它的最大值 -- value: 默认编辑器中显示markdown内容 --``` - -js - -```js -var mde = new MDEditor({ - id:"#mdeditor", - minheight:300, - maxheight:600, - value:"#多多少少的" -}).load().input(function(evn,opts){ - console.log("evn:",evn) - console.log("opts:",opts) -}) -``` ## MDEditor初始化 @@ -101,6 +71,8 @@ ```js mde.setHTML(val) ``` +