# Code Mode edit not working

**URL:** <https://forum.mautic.org/t/code-mode-edit-not-working/28930>\
**Category:** Product Support\
**Tags:** mautic-4\
**Created:** [August 13, 2023, 8:14pm UTC](https://forum.mautic.org/t/code-mode-edit-not-working/28930 "2023-08-13T20:14:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ssdesign](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ssdesign/32/10291_2.png) [@ssdesign](https://forum.mautic.org/u/ssdesign)\
**Post date:** [August 13, 2023, 8:14pm UTC](https://forum.mautic.org/t/code-mode-edit-not-working/28930/1 "2023-08-13T20:14:34Z")

</div>

**Your software**  
My Mautic version is: 4.0.0  
My PHP version is: 7.4.33  
My Database type and version is: MariaDB

**Your problem**  
My problem is:  
I created an email and chose the “Code mode”.  
THen when I clicj the Edit Icon to enter the code mode, nothing is displaying on the screen. No Edit Pop-up.

View code works, but nothing happens when I click Edit Code.

Just a second ago I had created a test email and the edit code window had worked until I actually edited and code and entered {unsubscribe\_text} and saved. After that the Edit Window stopped opening.  
So I had to delete that email and created a new one, but now the Edit Mode does not open in any email I create.

Is there a fix for this?

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [August 14, 2023, 10:47am UTC](https://forum.mautic.org/t/code-mode-edit-not-working/28930/2 "2023-08-14T10:47:25Z")

</div>

Hi,  
This is how it should work.  
Codemode editing means you are editing the code directly.  
If you want to use a tempalte and change the code, you should click here:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/6/6b055e727ca2a200c8d625688252f629e610dc4b.png)

---

<div class="post-metadata">

**Author:** ![ssdesign](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ssdesign/32/10291_2.png) [@ssdesign](https://forum.mautic.org/u/ssdesign)\
**Post date:** [August 14, 2023, 5:24pm UTC](https://forum.mautic.org/t/code-mode-edit-not-working/28930/3 "2023-08-14T17:24:10Z")

</div>

> [@joeyk](#):
>
> Codemode editing means you are editing the code directly.

Thanks for your reply @joeyk  
Actually I WANT to continue editing the code, but despite choosing the Code Mode template, the Edit Code window does not open. I have to refresh the page multiple times and them sometimes it works.

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [August 14, 2023, 5:41pm UTC](https://forum.mautic.org/t/code-mode-edit-not-working/28930/4 "2023-08-14T17:41:44Z")

</div>

There is no edit window. You have to open the Advanced tab.

---

<div class="post-metadata">

**Author:** ![ssdesign](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ssdesign/32/10291_2.png) [@ssdesign](https://forum.mautic.org/u/ssdesign)\
**Post date:** [August 14, 2023, 6:01pm UTC](https://forum.mautic.org/t/code-mode-edit-not-working/28930/5 "2023-08-14T18:01:19Z")

</div>

Oh I mean this is the button I click to Edit the code.  
Thats what I am calling the “Edit Window”

 ![Screen Shot 2023-08-14 at 10.59.29 AM](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/a/a0e9a83f604e04c70178b9d9c29787b5c7fe059f.png)
