浏览代码

HUE-7744 [dashboard] Enable Ace Hue theme in the single line Ace editor

Enrico Berti 8 年之前
父节点
当前提交
d1f2750a35
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      desktop/core/src/desktop/templates/ko_components/ko_simple_ace_editor.mako

+ 1 - 0
desktop/core/src/desktop/templates/ko_components/ko_simple_ace_editor.mako

@@ -780,6 +780,7 @@ from desktop.views import _ko
 
         var editor = ace.edit($element.find('.ace-editor')[0]);
         editor.$blockScrolling = Infinity;
+        editor.setTheme($.totalStorage('hue.ace.theme') || 'ace/theme/hue');
         self.ace(editor);
 
         if (params.autocomplete) {