# GrapesJS code editor fails to save changes to custom code, old code comes back

**URL:** https://forum.mautic.org/t/grapesjs-code-editor-fails-to-save-changes-to-custom-code-old-code-comes-back/31205
**Category:** Product Support
**Created:** [March 9, 2024, 8:47pm UTC](https://forum.mautic.org/t/grapesjs-code-editor-fails-to-save-changes-to-custom-code-old-code-comes-back/31205 "2024-03-09T20:47:58Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jakobpersson](https://avatars.discourse-cdn.com/v4/letter/j/5e9695/32.png) [@jakobpersson](https://forum.mautic.org/u/jakobpersson)
#### Post date: [March 9, 2024, 8:47pm UTC](https://forum.mautic.org/t/grapesjs-code-editor-fails-to-save-changes-to-custom-code-old-code-comes-back/31205/1 "2024-03-09T20:47:58Z")

</div>

**Your software**  
My Mautic version is: 5.0.3  
My PHP version is: 8.1.27  
My Database type and version is: mariadb Ver 15.1 Distrib 10.6.16-MariaDB, for debian-linux-gnu (x86\_64) using EditLine wrapper

**Your problem**  
My problem is:  
I added custom CSS using the GrapesJS code editor (pen button), but I cannot remove it. It keeps coming back when I click Save. Now there’s tons of redundant CSS due to my attempts to edit and remove the first code I wrote.

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

These errors are showing in the log:

Steps I have tried to fix the problem:  
Reload tab, save, close editor, open editor
