From a32feec01efba7a02234abf1b6d9a9424697f6da Mon Sep 17 00:00:00 2001 From: Viky-zhang Date: Sun, 24 Apr 2016 21:39:45 +0800 Subject: [PATCH] fix RequireJs submodule relative path For situation of `baseUrl` is not to `editor.md/lib`. --- editormd.amd.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/editormd.amd.js b/editormd.amd.js index 3bc4687..daf4994 100644 --- a/editormd.amd.js +++ b/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",