修复二级目录BUG

This commit is contained in:
Minho
2018-03-25 16:59:48 +08:00
parent eaf11b3f0d
commit 3e3aafa77d
2 changed files with 5 additions and 4 deletions

View File

@@ -1,13 +1,13 @@
$(function () {
editormd.katexURL = {
js : "/static/katex/katex",
css : "/static/katex/katex"
js : window.baseUrl + "/static/katex/katex",
css : window.baseUrl + "/static/katex/katex"
};
window.addDocumentModalFormHtml = $(this).find("form").html();
window.editor = editormd("docEditor", {
width: "100%",
height: "100%",
path: "/static/editor.md/lib/",
path: window.baseUrl + "/static/editor.md/lib/",
toolbar: true,
placeholder: "本编辑器支持 Markdown 编辑,左边编写,右边预览。",
imageUpload: true,