Skip to content

Cannot load a sample #141

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
etnmoussillac opened this issue Nov 21, 2024 · 0 comments
Closed

Cannot load a sample #141

etnmoussillac opened this issue Nov 21, 2024 · 0 comments

Comments

@etnmoussillac
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant