Browse Source

fix RequireJs submodule relative path

For situation of `baseUrl` is not to `editor.md/lib`.
master
Viky-zhang 9 years ago
parent
commit
a32feec01e
  1. 6
      editormd.amd.js

6
editormd.amd.js

@ -22,14 +22,14 @@
{
if (define.amd) // for Require.js
{
var cmModePath = "codemirror/mode/";
var cmAddonPath = "codemirror/addon/";
var cmModePath = "./lib/codemirror/mode/";
var cmAddonPath = "./lib/codemirror/addon/";
var codeMirrorModules = [
"jquery", "marked", "prettify",
"katex", "raphael", "underscore", "flowchart", "jqueryflowchart", "sequenceDiagram",
"codemirror/lib/codemirror",
"./lib/codemirror/lib/codemirror",
cmModePath + "css/css",
cmModePath + "sass/sass",
cmModePath + "shell/shell",

Loading…
Cancel
Save