From 809c38c899185d7bac9037f204b8052ea89c5c57 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Tue, 18 Aug 2015 01:13:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=BF=AE=E5=A4=8D=E4=BE=8B?= =?UTF-8?q?=E5=AD=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/test.html | 44 ++++++++------------------------------------ 1 file changed, 8 insertions(+), 36 deletions(-) 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编辑器 - +
# 简易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) ``` +
+
\ No newline at end of file