angular-email-editor icon indicating copy to clipboard operation
angular-email-editor copied to clipboard

Can't use twice in same component

Open vikrambarnwal opened this issue 2 years ago • 0 comments

I want to use two email editor in same component.

<div class="container">
  <button (click)="exportHtml()">Export</button>
  <email-editor #editor1 (loaded)="editorLoaded($event)"></email-editor>
</div>

<div class="container">
  <button (click)="exportHtml()">Export</button>
  <email-editor #editor2 (loaded)="editorLoaded($event)"></email-editor>
</div>

@ViewChild(EmailEditorComponent) private emailEditor: EmailEditorComponent;

If i am trying viewchildren instead of viewchild ,issue as editor is not defined is coming in console.

can someone guide or help?

Thanks in advance.

vikrambarnwal avatar Mar 13 '23 15:03 vikrambarnwal