automizy-email-editor
Version:
Design mobile friendly HTML emails in your application.
63 lines (61 loc) • 2.87 kB
HTML
<section>
<h1>Main functions</h1>
<div class='module-description'>
</div><table class='functions-table'>
<tr>
<td class='function-body'>
<article>
<h2>$AEE.getHtmlCode()</h2>
<div class='function-description'>
Use this function to generate the html code of the edited email. This is the final code, it can be sent as an email.
</div>
</article>
</td>
<td class='function-example'>
<pre class='prettyprint linenums'>
//Create an email and get the html code
$AEE.getHtmlCode();
</pre>
<div class="open-example-button" onclick="$AEE.open(function(){setTimeout(function(){alert('Create an email, then type $AEE.getHtmlCode() in your console to get the html code!');},500)}).open(250)">Try it!</div>
</td>
</tr>
<tr>
<td class='function-body'>
<article>
<h2>$AEE.getEditorCode()</h2>
<div class='function-description'>
Use this function to get the editor code of the edited email. This code later can be loaded using the <code>$AEE.setEditorCode</code> function.
</div>
</article>
</td>
<td class='function-example'>
<pre class='prettyprint linenums'>
//Create an email and get the editor code
$AEE.getEditorCode();
</pre>
<div class="open-example-button" data-function="setTimeout(function(){alert('Create an email, then type $AEE.getEditorCode() in your console to get the editor code!');},500)">Try it!</div>
</td>
</tr>
<tr>
<td class='function-body'>
<article>
<h2>$AEE.setEditorCode(code)</h2>
<div class='function-description'>
Use this function to set the editor code of the edited email.
<div class='function-paramenters'>Parameters:</div>
<code>code</code>: The editor load you want to load.<br>
</div>
</article>
</td>
<td class='function-example'>
<pre class='prettyprint linenums'>
//Create an email and save the code
var oldCode=$AEE.getEditorCode();
//Do some modifications, and then load the old code
$AEE.setEditorCode(oldCode);
</pre>
<div class="open-example-button" data-function="setTimeout(function(){alert('Create an email, save the code in a variable, modify the email and then set the old code using the $AEE.setEditorCode() function!');},500)">Try it!</div>
</td>
</tr>
</table>
</section>