Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mobile Editor broken #438

Open
BenWanLH opened this issue Dec 16, 2024 · 1 comment
Open

Mobile Editor broken #438

BenWanLH opened this issue Dec 16, 2024 · 1 comment

Comments

@BenWanLH
Copy link

Hi,

Have been using react-email-editor for a long time however suddenly noticed that the ability to edit for mobile is missing. checked the documentation but was also unable to see any change on how to enable it. Would anyone be able to advise?

@HPGoder
Copy link

HPGoder commented Jan 2, 2025

Hi,

I'm facing the same issue. The "preview" options are available; however, the only "device mode" available in the editor is "Desktop." I've tried updating react-email-editor to the latest version (as well as a few previous ones), but this doesn't seem to resolve the issue.

What I've Tried:

1. Feature - Preview
Reference: [Preview Designs Documentation](https://docs.unlayer.com/docs/preview-designs)

I tried toggling the features.preview setting between false and true. However, as described in the documentation, this only affects "preview mode" and not the editor mode.

2. Setting the Editor Version

After creating an account directly on Unlayer, I noticed that the mobile editor feature is available there. I attempted to set the version of Unlayer used in the iframe to match the one on their site:

<iframe src="https://editor.unlayer.com/1.188.0/editor.html" ...></iframe>

I then tried the following in my code:

<EmailEditor
  options={{
    version: '1.188.0',
  }}
/>

This successfully loads the specified version, but it still does not resolve the issue.

NB : for reference, without forcing any version the iframe points to src="https://editor.unlayer.com/1.157.0/editor.html"

EDIT

By checking their website, I noticed that some releases addressed issues with the mobile editor. After switching to version 1.9.1, the feature works (though this is just a poor temporary patch to get the feature running...).

https://docs.unlayer.com/changelog

<EmailEditor
  options={{
    version: '1.9.1',
  }}
/>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants