# Bug COMMS-60 - CKEditor: Markdown source view does not have soft wrapping and max-height is inconsistent

Project: Stream Communicator
Status: closed
URL: https://community.openproject.org/work_packages/COMMS-60

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Modules and project features / Text editor |
| Target versions | 18.0.0 |
| Observed in versions | 14.5.0 |
| Sprint |  |
| Backlog bucket | Bugs |
| Bug found in version (deprecated) | 14.5.x |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable | Pavel Balashou |
| Product manager |  |
| Developers | Tom Hykel |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### Steps to reproduce

  - Open a work package in details view

  - Click the description to edit it

  - Click on the "Switch to Markdown source" button on the CKEditor toolbar

### What is the buggy behavior?

  - In Markdown view, the lines don't have a soft-wrap and therefore require horizontal scrolling
    
      - This makes it more difficult to edit text in Markdown view in most cases (except when there are tables)

  - The height of the Markdown and WYSIWYG views are not similar
    
      - The lack of soft-wrap is probably the cause

  - (optional) The cursor position is not maintained when switching modes

### What is the expected behavior?

  - Soft-wrap the Markdown source at the available width of the text area

  - Both the WYSIWYG and Source editors should have the same max-height

  - (only if easy fix, ignore otherwise) The cursor position is maintained when switching modes

### Screenshots and other files

<img class="image_resized op-uc-image op-uc-image_inline" style="width:1085px;" src="/api/v3/attachments/197694/content">

### Environment information

**Edge**  
OpenProject 14.6.0  
Core build: [d63c8146c7452f8d7bc2384d53601fe53983a73e](https://github.com/opf/openproject/commits/d63c8146c7452f8d7bc2384d53601fe53983a73e)  
Product version: [9febf534a80981acd72161d376b599303d7753d9](https://github.com/opf/saas-openproject/commits/9febf534a80981acd72161d376b599303d7753d9)

**Browser:**  
Firefox, Mac (desktop)

**Language**  
EN
