Skip to content

Commit

Permalink
fix RequireJs submodule relative path
Browse files Browse the repository at this point in the history
For situation of `baseUrl` is not to `editor.md/lib`.
  • Loading branch information
vikyd committed Apr 24, 2016
1 parent af08536 commit a32feec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions editormd.amd.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit a32feec

Please sign in to comment.