react-email-editor icon indicating copy to clipboard operation
react-email-editor copied to clipboard

Merge tags not displaying in Safari

Open bdipasquale opened this issue 4 years ago • 3 comments

Using the sample code from the documentation, I am unable to get mergeTags to load in Safari v. 14 No issues in Chrome & FF

image

unlayer.init({
  id: 'editor-container',
  displayMode: 'email',
  appearance: {theme: 'dark'},
  mergeTags: {
    first_name: {
      name: "First Name",
      value: "{{first_name}}",
      sample: "John"
    },
    last_name: {
      name: "Last Name",
      value: "{{last_name}}",
      sample: "Doe"
    }
  }
});

bdipasquale avatar Jan 10 '21 17:01 bdipasquale

@bdipasquale do you have a link where we can check?

adeelraza avatar Jan 12 '21 04:01 adeelraza

@adeelraza no unfortunately I do not have a public link. I am loading it into a react functional component but not using the unlayer wrapper. I stripped it down to a barebones implementation with the merge tags added to init script as demonstrated in the docs to try and isolate the issue. I'm not getting any errors, it's just not loading. If you have an example of it working in a react component I can start from there.

bdipasquale avatar Jan 12 '21 22:01 bdipasquale

hi @bdipasquale , where do i run the init method in react.

brennanleez-coder avatar Mar 02 '24 10:03 brennanleez-coder