Skip to content

Cannot load a sample #141

Closed
Closed
@etnmoussillac

Description

@etnmoussillac

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions