Browse Source

[spark] Fix Ace editor basePath for static files

Enrico Berti 10 năm trước cách đây
mục cha
commit
059f81c485
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  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');