瀏覽代碼

[spark] Fix Ace editor basePath for static files

Enrico Berti 10 年之前
父節點
當前提交
059f81c
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      apps/spark/src/spark/templates/editor_components.mako

+ 2 - 0
apps/spark/src/spark/templates/editor_components.mako

@@ -866,6 +866,8 @@ from desktop.views import _ko
 <%def name="commonJS()">
 <script type="text/javascript" charset="utf-8">
 
+  ace.config.set("basePath", "/static/desktop/js/ace");
+
   $.scrollbarWidth = function() {
     var _parent, _child, _width;
     _parent = $('<div style="width:50px;height:50px;overflow:auto"><div/></div>').appendTo('body');