Closed JonathanOJ closed 2 months ago
I trying to init a custom config in Angular. In documentation is called to use unlayer.init, but in the type fot editor EmailEditorComponent dont have this init. Im trying to add this itens:
this.emailEditor.init({ displayMode: 'email', features: { textEditor: { customButtons: [ { name: 'my_button', text: 'My Button', icon: 'bookmark', onSetup: () => {}, onAction: (data: any, callback: any) => { console.log(data.text); callback(data.text + ' Updated'); }, }, ], }, sendTestEmail: true }, });
What a i do ?
I trying to init a custom config in Angular. In documentation is called to use unlayer.init, but in the type fot editor EmailEditorComponent dont have this init. Im trying to add this itens:
this.emailEditor.init({ displayMode: 'email', features: { textEditor: { customButtons: [ { name: 'my_button', text: 'My Button', icon: 'bookmark', onSetup: () => {}, onAction: (data: any, callback: any) => { console.log(data.text); callback(data.text + ' Updated'); }, }, ], }, sendTestEmail: true }, });