Browse Source

优化编辑器,单行太长时支持自动换行。

mxd 4 years ago
parent
commit
438e44eef2
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/main/resources/magicapi-support/js/index.js

+ 3 - 1
src/main/resources/magicapi-support/js/index.js

@@ -1367,6 +1367,7 @@ var MagicEditor = {
             language: 'magicscript',
             folding : true,
             lineDecorationsWidth : 35,
+            wordWrap : 'on',
             theme : theme,
         })
         this.requestEditor = monaco.editor.create($('.request-editor')[0], {
@@ -1398,7 +1399,8 @@ var MagicEditor = {
             folding : true,
             readOnly : true,
             fixedOverflowWidgets : true,
-            theme : theme
+            theme : theme,
+            wordWrap : 'on'
         })
         var _this = this;
         this.scriptEditor.onMouseDown(function(e){