TronDesigner – Integration Examples
Docs: Developer documentation  |  Dialog and inline display

Back to examples

Inline Embed Mode

Inline Mode embeds the TronDesigner editor directly into a page element, allowing seamless integration within your page layout.

Use cases: Product detail pages, configurators, seamless design experience, dashboard integrations

Configuration: {mode: "container", container: document.getElementById("element-id")}

Control Panel

Editor Container

The editor will appear here when you click one of the buttons above.

Container ID: #editor-container
Size: 100% width × 800px height

Implementation Notes

Code Example:

tronDesigner.openDesigner({
    "openMode": "Create",
    "dataMode": "Exact",
    "printJob": { /* configuration */ }
}, {
    mode: "container",
    container: document.getElementById("editor-container"),
    onClose: (reason) => console.log("Editor closed:", reason)
});