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

Preview template on page load

Open treasurechic opened this issue 3 years ago • 2 comments

Please how do I preview the template on page load?

When the page loads in I want to trigger the preview so it just previews the template without the editing tools.

I will be glad if anyone can help out, thanks

treasurechic avatar Jul 24 '21 09:07 treasurechic

@treasurechic Just pass in either the template ID of a template from unlayer.com or a JSON of a template to editor.loadDesign

faizan-ali avatar Sep 08 '21 22:09 faizan-ali

Thank you for replying but this will not work for what I am trying to do. With this approach, the design will be loaded on the screen but the side editing tools will still be present.

treasurechic avatar Sep 14 '21 23:09 treasurechic