(unlayer)
| 84 | }; |
| 85 | |
| 86 | const onLoad: EmailEditorProps['onLoad'] = (unlayer) => { |
| 87 | console.log('onLoad', unlayer); |
| 88 | unlayer.addEventListener('design:loaded', onDesignLoad); |
| 89 | unlayer.loadDesign(sample); |
| 90 | }; |
| 91 | |
| 92 | const onReady: EmailEditorProps['onReady'] = (unlayer) => { |
| 93 | console.log('onReady', unlayer); |