Skip to content

[Feature Request]: Word wrap in codemirror #570

@crivetimihai

Description

@crivetimihai

✨ Feature Summary

Add Word Wrap Support in CodeMirror Editor. This improves readability for long lines of text/code, particularly helpful for JSON content and long string values. This change will enhance user experience by eliminating horizontal scrolling.


🧩 Affected Component

Select the area of the project impacted:

  • mcpgateway - API
  • mcpgateway - UI (admin panel)
  • mcpgateway.wrapper - stdio wrapper
  • Federation or Transports
  • CLI, Makefiles, or shell scripts
  • Container setup (Docker/Podman/Compose)
  • Other (explain below)

🔁 Steps to Reproduce

  1. Open any editor instance in the admin panel (e.g., Test Tool, JSON inputs)
  2. Enter or paste a long line of text that exceeds the editor width
  3. Observe that text extends horizontally, requiring horizontal scrolling
  4. Look for word wrap options in the editor

🤔 Expected Behavior

  • Long lines should automatically wrap to the next line when they reach the editor's width
  • Text should remain readable without requiring horizontal scrolling
  • Code structure and indentation should be preserved when wrapping
  • Editor should maintain all other functionality while providing word wrap

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestfrontendFrontend development (HTML, CSS, JavaScript)help wantedExtra attention is neededtriageIssues / Features awaiting triage

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions