Open fahim041 opened 3 years ago
You need configure this in tools prop before viewInit, not in options prop, see below:
this.emailEditor.tools = {
image: {
enabled: false
}
};
@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" }, } ]);
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,
},
}
}
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.
Any Idea why?
Thanks