GrapesJS / GrapesJS/mjml

BUG: redo doesn't restore image

Open
#389 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
716
Forks
251
PR merge metrics
No merged PRs in 30d

Description

### GrapesJS version

- [X] I confirm to use the latest version of GrapesJS

### GrapesJS MJML version

- [X] I confirm to use the latest version of GrapesJS MJML

### What browser are you using?

Chrome v132

### Reproducible demo link

https://grapesjs.com/demo-mjml.html

### Describe the bug

Hello, I have come across a bug with image restoration.

Steps to reproduce:

1. Add an image.
2. Set the image to a custom one.
3. Click "undo".
4. Click "redo".

Current behavior: the image doesn't come back.
Expected result: the image is restored.

Note: This is only the case with `mj-image` in [GrapesJS MJML](https://grapesjs.com/demo-mjml.html), normal images in the [main demo](https://grapesjs.com/demo.html) work correctly.

Thank you for your time and a great library :)

### Code of Conduct

- [X] I agree to follow this project's Code of Conduct

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.