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
$blockScrolling: Infinity,
showPrintMargin: false,
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) {
_editor.$blockScrolling = Infinity;
_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