unlayer / react-email-editor

Drag-n-Drop Email Editor Component for React.js
https://unlayer.com/
MIT License
4.63k stars 744 forks source link

set initial value to email editor #101

Open ma2web opened 4 years ago

ma2web commented 4 years ago

is there any way that I can pass initial value to email editor?some defualt template landding or injecting html content to :

<div className="email-template-container">
       <EmailEditor ref={editor => (this.editor = editor)} minHeight="75vh"  />
</div>

data => <p>initial data </p>

adeelraza commented 4 years ago

@mohammadaminazimi you can pass an initial design using the loadDesign method.