# Probable Bug with GrapeJS

**URL:** <https://forum.mautic.org/t/probable-bug-with-grapejs/25003>\
**Category:** Product Support\
**Created:** [August 9, 2022, 8:50pm UTC](https://forum.mautic.org/t/probable-bug-with-grapejs/25003 "2022-08-09T20:50:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![healthstatus1](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/healthstatus1/32/961_2.png) [@healthstatus1](https://forum.mautic.org/u/healthstatus1)\
**Post date:** [August 9, 2022, 8:50pm UTC](https://forum.mautic.org/t/probable-bug-with-grapejs/25003/1 "2022-08-09T20:50:00Z")

</div>

**Your software**  
My Mautic version is: 4.4.1  
My PHP version is: 7.4.30  
My Database type and version is: 10.5.10-MariaDB-1:10.5.10+maria~xenial-log

**Your problem**  
My problem is: I have two projects running under two different URLS, with a Mautic installation for each. I have a dozen emails in one Mautic (from), that I want to copy to the other (to). I opened the from instance in an incognito window on Chrome, I opened the to instance in a regular chrome window.

I go to the email in the from and open code editor, I copy all the text, next I add a new email on the to machine, enter the subject lines and such, then builder, and open code editor, select all and paste. This works for one or two emails, starting with the second or third, the code shown in the from edit code window is the previous email. So if I am viewing the third email, the edit code that appears in the popup is the code from the 2nd email.

These errors are showing in the log:  
no errors

Steps I have tried to fix the problem:  
Logged out, logged into mautic (to), logged out, logged into Mautic (from) this works for one or two but then repeats again)  
Restarted Windows PC

---

<div class="post-metadata">

**Author:** ![healthstatus1](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/healthstatus1/32/961_2.png) [@healthstatus1](https://forum.mautic.org/u/healthstatus1)\
**Post date:** [August 9, 2022, 9:56pm UTC](https://forum.mautic.org/t/probable-bug-with-grapejs/25003/2 "2022-08-09T21:56:33Z")

</div>

I have finally found that if you get into the (from) edit email screen, then click reload from the browser, then edit code, that will clear whatever buffer is stuck and the edit code will now be the code for the html email shown.

You also have to do the same on the (to) edit screen, or after a couple of pastes the save/cancel buttons no longer work.

---

<div class="post-metadata">

**Author:** ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)\
**Post date:** [August 10, 2022, 8:25am UTC](https://forum.mautic.org/t/probable-bug-with-grapejs/25003/3 "2022-08-10T08:25:25Z")

</div>

Please review this PR:

> <https://github.com/mautic/mautic/pull/11376>
>
> | Q | A
> | --------------------------------…------ | ---
> | Bug fix? (use the a.b branch) | \[y\]
> | New feature/enhancement? (use the a.x branch) | \[\]
> | Deprecations? | \[\]
> | BC breaks? (use the c.x branch) | \[\]
> | Automated tests included? | \[\] 
> | Related user documentation PR URL | mautic/mautic-documentation#... 
> | Related developer documentation PR URL | mautic/developer-documentation#... 
> | Issue(s) addressed | Fixes #11239
> 
> \#### Steps to test this PR:
> 
> Reproduce it by:
> 1. Open the Email Builder
> 2. Change something in the Code Editor and save it
> 3. Close the Email Builder
> 4. Reopen the Email Builder (without saving or anything)
> 5. Change something in the Code Editor and try to save it.
> 6. Nothing happens
> 
> After applying this PR:
> 1. Open this PR on Gitpod or pull down for testing locally (see docs on testing PRs \[here\](https://contribute.mautic.org/contributing-to-mautic/tester))
> 2. Open the Email Builder
> 3. Change something in the Code Editor and save it
> 4. Close the Email Builder
> 5. Reopen the Email Builder (without saving or anything)
> 6. Change something in the Code Editor and save it.
> 7. Code Editor is closed and change is applied
> 
> 
> \<a href="https://gitpod.io/#https://github.com/mautic/mautic/pull/11376"\>\<img src="https://gitpod.io/button/open-in-gitpod.svg"/\>\</a\>

I think this is probably the issue you are experiencing, that the save button does not work if you close and then reopen the builder. If we get enough tests it will be released at the end of the month.

Here’s the step by step instructions of how to test using Gitpod in the browser:

> **[Tester](https://contribute.mautic.org/contributing-to-mautic/tester#the-easy-way-using-gitpod)**
>
> . Every new feature and bug fix that is released in Mautic has undergone testing and code review by members of the community before it makes it into a release.We are always looking out for people to help us with these processes. Even if you can spare...

Here’s how to report your findings after testing:

> **[Tester](https://contribute.mautic.org/contributing-to-mautic/tester#leaving-your-review)**
>
> . Every new feature and bug fix that is released in Mautic has undergone testing and code review by members of the community before it makes it into a release.We are always looking out for people to help us with these processes. Even if you can spare...

---

<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 11, 2022, 11:45am UTC](https://forum.mautic.org/t/probable-bug-with-grapejs/25003/4 "2022-08-11T11:45:04Z")

</div>

Yeah, I tested it. It works great, thank you!
