mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-09-20 10:48:00 +08:00
feat:增加editor.md库的CDN
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
$(function () {
|
||||
editormd.katexURL = {
|
||||
js : window.baseUrl + "/static/katex/katex",
|
||||
css : window.baseUrl + "/static/katex/katex"
|
||||
js : window.katex.js,
|
||||
css : window.katex.css
|
||||
};
|
||||
window.editor = editormd("docEditor", {
|
||||
width: "100%",
|
||||
height: "100%",
|
||||
path: window.baseUrl + "/static/editor.md/lib/",
|
||||
path: window.editormdLib,
|
||||
toolbar: true,
|
||||
placeholder: "本编辑器支持 Markdown 编辑,左边编写,右边预览。",
|
||||
imageUpload: true,
|
||||
|
Reference in New Issue
Block a user