<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>wfEditor</title>
    <link rel="stylesheet" href="libs/bootstrap/3.2.0/css/bootstrap.min.css">
    <link rel="stylesheet" href="libs/fontawesome/4.2.0/css/font-awesome.min.css">
    <link rel="stylesheet" href="css/style.css">
    <script src="libs/underscore.js/1.7.0/underscore-min.js"></script>
    <script src="libs/require.js/2.1.11/require.min.js"></script>
</head>
<body>
    <div class="content">
        <div class="container-fluid">
            <div id="pad-wrapper">
                <div id="editControls"></div>
                <div id="editparent">
                    <div id="editor" contenteditable>
<h1>wfEditor</h1>
<h4>基于<a href="https://github.com/shy2850/wfQuery">wfQuery</a>的极简可定制化的富文本编辑器</h4>
<h4>依赖&nbsp;<a href="https://github.com/shy2850/node-server">f2e-server</a>&nbsp;完整运行,&nbsp;</h4>
<h4>Demo:&nbsp;<a href="http://webfuture.cn/wfEditor/index.html">http://webfuture.cn/wfEditor/index.html</a></h4>
<p><code>npm install wfeditor</code>&nbsp;</p>
<p>
    <img src="f2e/placeholder.jpg" alt="placeholder.jpg">
    <br>
</p>
<ul>
    <li>
        <p>npm&nbsp;install</p>
        <pre><code>"dependencies": {
    "codemirror": "^5.3.0",
    "js-beautify": "^1.5.7",
    "marked": "^0.3.3",
    "wfquery": "^0.2.0"
}</code></pre>
    </li>
    <li>
        <p>libs: 通过&nbsp;<a href="http://f2e-server.com/agent.html#save">f2e-server</a>&nbsp;代理&nbsp;<a href="http://cdn.code.baidu.com/">百度CDN</a>&nbsp;获取</p>
        <pre><code>exports["wfeditor.cn"] = {
    root: "E:\\github\\wfEditor\\",
    runJs: false,
    cdn: true,
    expires: 1000 * 60 * 60 * 24,
    agent:{
        get:function(path){
            return {
                host: "apps.bdimg.com",
                save: true
            }
        }
    }
};</code></pre></li>
</ul>
                    </div>
                    <textarea id="code" style="display:none;"></textarea>
                </div>
            </div>
        </div>
    </div>
<script>
require.config({
    baseUrl: "js/",
    paths: {
        "wf": "../node_modules/wfquery/js/wfQuery"
    }
});

require(["base/index"]);
</script>
</body>
</html>