Admin

Editor.md 简介
2018年6月10日 21:42 15 0 1 1






Editor.md : The open source embeddable online markdown editor (component), based on CodeMirror & jQuery & Marked.

Features

README & Examples (English)


Editor.md 是一款开源的、可嵌入的 Markdown 在线编辑器(组件),基于 CodeMirror、jQuery 和 Marked 构建。

editormd-screenshot

主要特性

Examples

https://pandao.github.io/editor.md/examples/index.html

Download & install

Github download

Bower install :

  1. bower install editor.md

Usages

HTML:

  1. <link rel="stylesheet" href="editormd.min.css" />
  2. <div id="editormd">
  3. <textarea style="display:none;">### Hello Editor.md !</textarea>
  4. </div>

Tip: Editor.md can auto append <textarea> tag;

javascript:

  1. <script src="jquery.min.js"></script>
  2. <script src="editormd.min.js"></script>
  3. <script type="text/javascript">
  4. $(function() {
  5. var editor = editormd("editormd", {
  6. path : "../lib/" // Autoload modules mode, codemirror, marked... dependents libs path
  7. });
  8. /*
  9. // or
  10. var editor = editormd({
  11. id : "editormd",
  12. path : "../lib/"
  13. });
  14. */
  15. });
  16. </script>

Using modular script loader :

Dependents

Changes

Change logs

License

The MIT License.

Copyright (c) 2015 Pandao

发布内容,请遵守相关法律法规。
评论