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
// 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' });