# Bug COMMS-868 - Switch from Markdown source back to WSIWYG editor results in an error

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | High |
| Module | Modules and project features / Text editor / CKEditor5 |
| Target versions | 17.8.0 |
| Observed in versions | 17.7.0 |
| Sprint | Sprint 11: Versions stabilization |
| Backlog bucket |  |
| Bug found in version (deprecated) | 17.7.x |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers | Kabiru Mwenja |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

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

## Costs

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

## Description

### Steps to reproduce

1.  Create WP
    
2.  Open Workpackage and click into the description-field
    
3.  Click Icon to &quot;Switch to Markdown source&quot;
    
4.  Click Icon to &quot;Switch to WSIWYG editor&quot;
    
5.  Error-Text will show up  
    &quot;An error occurred within CKEditor  
    unexpected-error Read more: https://ckeditor.com/docs/ckeditor5/latest/support/error-codes.html#error-unexpected-error Original error: TypeError: Cannot set properties of undefined (setting &#x27;isEnabled&#x27;)&quot;
    

### What is the buggy behavior?

*   Switching back form Markdown to the WYSIWYG editor is not possible
    

### What is the expected behavior?

1.  Switching back to the WYSIWYG editor should work.
    

###   

### **Logs**

_&quot;_  
index.js:903  
Uncaught CKEditorError: unexpected-error  
Read more: https://ckeditor.com/docs/ckeditor5/latest/support/error-codes.html#error-unexpected-error  
Original error: TypeError: Cannot set properties of undefined (setting &#x27;isEnabled&#x27;)  
&nbsp;  at button-disabler.js:42:13  
   at Array.forEach (&lt;anonymous&gt;)  
   at pk (button-disabler.js:34:26)  
   at op-source-code.plugin.js:86:5  
   at Lu.&lt;anonymous&gt; (op-source-code.plugin.js:94:4)  
   at Lu.fire (index.js:1280:28)  
   at nu.&lt;anonymous&gt; (index.js:2902:30)  
   at tt.o3 (index.js:989:26)  
   at tt.fire (index.js:1280:28)  
   at HTMLButtonElement.t3 (index.js:2681:18)

_&quot;_

### Screenshots and other files

[https://community.openproject.org/api/v3/attachments/922215/content](https://community.openproject.org/api/v3/attachments/922215/content)

### Environment information

<br>

**OpenProject version**

_17.5.1_

_17.7.0 (Edge - https://stadt-koeln.openproject-edge.com/)_

**Browser**

*   [x] Chrome
*   [ ] Firefox
*   [ ] Safari
*   [ ] Mobile Safari
*   [ ] Other (please specify)

**Operating System**

*   [x] Windows
*   [ ] Mac OS X
*   [ ] Mobile iOS
*   [ ] Mobile Android
*   [ ] Linux (please specify distro)
*   [ ] Chrome OS
*   [ ] Other (please specify)

**Language**

_german / englisch_
