Skip to content

Commit d2fcbb7

Browse files
committed
feat: add word wrap support to CodeMirror editors
Implements lineWrapping: true configuration for all CodeMirror editor instances in the admin UI: - Main editor configs (headers, schema, resource content, prompt template, etc.) - Gateway test editors (headers and body) This improves readability for long lines of text/code, particularly helpful for JSON content and long string values, eliminating horizontal scrolling in the admin panel editors. Fixes #570 Signed-off-by: Mihai Criveti <[email protected]>
1 parent 83bc689 commit d2fcbb7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

mcpgateway/static/admin.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4771,6 +4771,7 @@ async function testGateway(gatewayURL) {
47714771
{
47724772
mode: "application/json",
47734773
lineNumbers: true,
4774+
lineWrapping: true,
47744775
},
47754776
);
47764777
gatewayTestHeadersEditor.setSize(null, 100);
@@ -4786,6 +4787,7 @@ async function testGateway(gatewayURL) {
47864787
{
47874788
mode: "application/json",
47884789
lineNumbers: true,
4790+
lineWrapping: true,
47894791
},
47904792
);
47914793
gatewayTestBodyEditor.setSize(null, 100);
@@ -6450,6 +6452,7 @@ function initializeCodeMirrorEditors() {
64506452
autoCloseBrackets: true,
64516453
matchBrackets: true,
64526454
tabSize: 2,
6455+
lineWrapping: true,
64536456
},
64546457
);
64556458
console.log(`✓ Initialized ${config.varName}`);

0 commit comments

Comments
 (0)