Sign inSign up

dockerxman/docker-editormd

By dockerxman

•Updated about 11 years ago

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

Image
4

10K+

dockerxman/docker-editormd repository overview

⁠Editor.md


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

editormd-screenshot

⁠主要特性

##editor.md的docker镜像创建文件

⁠创建
docker build -t dockerxman/editormd:latest .
⁠运行
docker run -itd -p 80:80 --name editormd dockerxman/editormd
⁠访问
http://ip
⁠项目地址

⁠https://github.com/xiongjungit/docker-editormd⁠

⁠示例

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

⁠下载 & 安装

Github download⁠

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>

提示:editor.md可以自动添加<文本>标签;

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>

使用模块化的脚本程序 :

⁠依赖
⁠变更

变更日志⁠

⁠代码创建和维护

Tag summary

Content type

Image

Digest

sha256:fb94f88bf…

Size

198.3 MB

Last updated

about 11 years ago

docker pull dockerxman/docker-editormd