You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="zh">
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8" />
|
|
|
|
<title>FlowChart - Editor.md examples</title>
|
|
|
|
<link rel="stylesheet" href="css/style.css" />
|
|
|
|
<link rel="stylesheet" href="../dist/css/editormd.css" />
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div id="layout">
|
|
|
|
<header>
|
|
|
|
<h1>FlowChart 流程图</h1>
|
|
|
|
<p>基于flowchart.js:<a href="http://adrai.github.io/flowchart.js/" target="_blank">http://adrai.github.io/flowchart.js/</a></p>
|
|
|
|
</header>
|
|
|
|
<div id="test-editormd">
|
|
|
|
<textarea style="display:none;">####开启FlowChart 流程图支持
|
|
|
|
|
|
|
|
配置项:
|
|
|
|
|
|
|
|
{
|
|
|
|
flowChart : true
|
|
|
|
}
|
|
|
|
|
|
|
|
####示例
|
|
|
|
|
|
|
|
```flow
|
|
|
|
st=>start: 用户登陆
|
|
|
|
op=>operation: 登陆操作
|
|
|
|
cond=>condition: 登陆成功 Yes or No?
|
|
|
|
e=>end: 进入后台
|
|
|
|
|
|
|
|
st->op->cond
|
|
|
|
cond(yes)->e
|
|
|
|
cond(no)->op
|
|
|
|
```</textarea>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<script src="../lib/jquery.min.js"></script>
|
|
|
|
<script src="../src/js/editormd.js"></script>
|
|
|
|
<script type="text/javascript">
|
|
|
|
$(function() {
|
|
|
|
var testEditor = editormd("test-editormd", {
|
|
|
|
width: "90%",
|
|
|
|
height: 640,
|
|
|
|
path : '../lib/',
|
|
|
|
flowChart : true
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html>
|