feat:增加editor.md库的CDN

This commit is contained in:
lifei6671
2018-08-07 18:29:15 +08:00
parent 327d6fb8d8
commit 19bf5a7389
4 changed files with 10 additions and 6 deletions

View File

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