mysq1123 97a9d99b9b updatepengjs | 6 years ago | |
---|---|---|
.. | ||
css | 6 years ago | |
docs | 6 years ago | |
examples | 6 years ago | |
fonts | 6 years ago | |
images | 6 years ago | |
languages | 6 years ago | |
lib | 6 years ago | |
plugins | 6 years ago | |
scss | 6 years ago | |
src | 6 years ago | |
tests | 6 years ago | |
BUGS.md | 6 years ago | |
CHANGE.md | 6 years ago | |
Gulpfile.js | 6 years ago | |
LICENSE | 6 years ago | |
README.md | 6 years ago | |
bower.json | 6 years ago | |
editormd.amd.js | 6 years ago | |
editormd.amd.min.js | 6 years ago | |
editormd.js | 6 years ago | |
editormd.min.js | 6 years ago | |
package.json | 6 years ago |
Editor.md : The open source embeddable online markdown editor (component), based on CodeMirror & jQuery & Marked.
Editor.md 是一款开源的、可嵌入的 Markdown 在线编辑器(组件),基于 CodeMirror、jQuery 和 Marked 构建。
https://pandao.github.io/editor.md/examples/index.html
Bower install :
bower install editor.md
HTML:
<link rel="stylesheet" href="editormd.min.css" />
<div id="editormd">
<textarea style="display:none;">### Hello Editor.md !</textarea>
</div>
Tip: Editor.md can auto append
<textarea>
tag;
javascript:
<script src="jquery.min.js"></script>
<script src="editormd.min.js"></script>
<script type="text/javascript">
$(function() {
var editor = editormd("editormd", {
path : "../lib/" // Autoload modules mode, codemirror, marked... dependents libs path
});
/*
// or
var editor = editormd({
id : "editormd",
path : "../lib/"
});
*/
});
</script>
Using modular script loader :
The MIT License.
Copyright (c) 2015 Pandao