unlayer / angular-email-editor

Drag-n-Drop Email Editor Component for Angular
https://unlayer.com/embed
MIT License
200 stars 165 forks source link

Problem to init a custom config #129

Closed JonathanOJ closed 2 months ago

JonathanOJ commented 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 ?