Closed
Description
Hello, I am trying to load a sample from a JSON, here is how I try :
`
<button (click)="exportHtml()">Export
<email-editor [projectId]="myid" (loaded)="editorLoaded($event)" (ready)="editorReady($event)">
public ngAfterViewInit(): void { console.log('init'); this.emailEditor?.editor.init(); this.emailEditor?.loadDesign(sample); }
I tried with both this.emailEditor?.loadDesign(sample);
and this.emailEditor?.editor.loadDesign(sample)
but it does nothing, i get the empty starting template
I tried calling it after editorReady or editorLoaded, but nothing changes, is there something I am missing?
Metadata
Metadata
Assignees
Labels
No labels