Iframe
Embed the editor directly inside your product page using an iframe.
Embed with iframe
Use iframe embedding when you want the editor to appear inside your product page.
Your backend still handles authentication and email creation. Your frontend only receives a temporary code and email ID, then renders the iframe.
Basic iframe
<iframe
src="https://plugin.aurorasendcloud.com/thirdApp?code=TEMP_CODE&id=EMAIL_ID&lang=en_US"
width="100%"
height="700"
frameborder="0"
allow="clipboard-write"
></iframe>URL parameters
| Parameter | Required | Description |
|---|---|---|
code | Yes | Temporary code generated by your backend through POST /access/code. |
id | Yes | Email ID returned by POST /access/email or selected from an existing email record. |
lang | No | Editor language, such as en_US. |
Backend responsibilities
Before rendering the iframe, your backend should:
- Create or refresh the End User token.
- Create or select an email ID.
- Generate a temporary code.
- Return
codeandemailIdto your frontend.
Do not generate temporary codes in frontend code.
Frontend example
<iframe
id="asc-editor"
src="https://plugin.aurorasendcloud.com/thirdApp?code={{ code }}&id={{ emailId }}&lang=en_US"
width="100%"
height="100%"
frameborder="0"
style="border: 0; min-height: 700px;"
allow="clipboard-write"
></iframe>Layout recommendations
- Give the iframe enough height for the editor workspace.
- Avoid putting the editor inside a small scrollable panel.
- Use responsive sizing if the editor appears inside a dashboard layout.
- Test both desktop and smaller screen widths in your product.
Example CSS:
#asc-editor {
width: 100%;
min-height: 700px;
border: 0;
}Temporary code handling
Temporary codes are single-use and expire quickly.
Generate a new code each time:
- The editor page loads.
- The user starts a new edit session.
- The previous code expired before the iframe loaded.
Save behavior
When the End User saves, ASC Editor Plugin sends the saved content to your configured Push URL.
Your product should not rely on iframe state alone to retrieve final content. Use Push URL Callback as the source of saved HTML and JSON.
Updated 6 days ago
