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")}
The editor will appear here when you click one of the buttons above.
Container ID: #editor-container
Size: 100% width × 800px height
#editor-container elementonClose to react when the customer closes ittronDesigner.openDesigner({
"openMode": "Create",
"dataMode": "Exact",
"printJob": { /* configuration */ }
}, {
mode: "container",
container: document.getElementById("editor-container"),
onClose: (reason) => console.log("Editor closed:", reason)
});