Commit 537c82b1 authored by Jason Song's avatar Jason Song Committed by GitHub

fix txt mode issue with ace ui

parent 212470ca
...@@ -891,7 +891,7 @@ function directive($window, toastr, AppUtil, EventManager, PermissionService, Na ...@@ -891,7 +891,7 @@ function directive($window, toastr, AppUtil, EventManager, PermissionService, Na
$blockScrolling: Infinity, $blockScrolling: Infinity,
showPrintMargin: false, showPrintMargin: false,
theme: 'eclipse', theme: 'eclipse',
mode: scope.namespace.format === 'yml' ? 'yaml' : scope.namespace.format, mode: scope.namespace.format === 'yml' ? 'yaml' : (scope.namespace.format === 'txt' ? undefined : scope.namespace.format),
onLoad: function (_editor) { onLoad: function (_editor) {
_editor.$blockScrolling = Infinity; _editor.$blockScrolling = Infinity;
_editor.setOptions({ _editor.setOptions({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment