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

How to call this following Init function angular

Open fahim041 opened this issue 5 years ago • 3 comments

Screenshot from 2020-12-22 14-54-27

When I try to call tools or options object, the editor seems not working. I tried to adjust some settings in the ngOnInit() function, it says undefined. Then I try to use that load function, minHeight and loadDesign is working but tool or options are not working.
Screenshot from 2020-12-22 14-56-57

Any Idea why?

Thanks

fahim041 avatar Dec 22 '20 19:12 fahim041

You need configure this in tools prop before viewInit, not in options prop, see below:

this.emailEditor.tools = {
  image: {
    enabled: false
  }
};

wgbnyes avatar Mar 22 '21 16:03 wgbnyes

@wgbnyes i need to add button click function in angular, how should i use,

unlayer.setLinkTypes([ { name: "static_google_link", label: "Go to Google", attrs: { href: "https://google.com/", target: "_blank" }, } ]);

Navya-adft avatar Mar 26 '21 03:03 Navya-adft

Hi, I'm trying to pass the options object to the editor in angular, but the editor does not reflect the changes

<email-editor [appearance]="editorAppearance" [options]="options" [projectId]="82250" (ready)="editorReady($event)"></email-editor>

in component.ts:

 options: any = {
    features: {
      audit: true,
      userUploads: true,
      stockImages: {
        enabled: true,
        safeSearch: true,
      },
    }
  }

supmanyu avatar May 28 '22 07:05 supmanyu