react-email-editor
react-email-editor copied to clipboard
Merge tags not displaying in Safari
Using the sample code from the documentation, I am unable to get mergeTags to load in Safari v. 14 No issues in Chrome & FF
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 do you have a link where we can check?
@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.
hi @bdipasquale , where do i run the init method in react.