TronDesigner – Integration Examples
Docs: Developer documentation  |  Open modes

Back to examples

Edit Mode

Edit Mode allows you to open and modify existing print jobs. You need the print job GUID to open it in edit mode.

Use cases: E-commerce cart editing, design revision, customer service updates

Oregon 400 ml - Red

Step 1: Create Print Job

Oregon 400 ml - Red

Edit with Manual GUID

Implementation Code

// 1. Remember the GUID of the created print job (event.entityGuid)
window.tronDesigner.subscribeDesignerEvent('printJob', 'created', (event) => {
    printJobGuid = event.entityGuid;
});

// 2. Open it again in Edit mode
window.tronDesigner.openDesigner({
    openMode: 'Edit',
    printJob: { printJobGuid: printJobGuid }
}, { mode: 'dialog' });

// or with the builder
window.tronDesigner.setPrintJob(printJobGuid, 'Edit').open({ mode: 'dialog' });