[FIX] web_editor: fix wrong reference for onIframeUpdated

Steps to reproduce the issue:
- Open an Automation Campaign
- Open a mailing
- Click edit
- Traceback: this.options.onIframeUpdated is not a function

closes odoo/odoo#100603

Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
This commit is contained in:
David Monjoie
2022-09-21 02:25:53 +02:00
parent 6da71c3de2
commit f6e553438f
@@ -44,7 +44,7 @@ export class MassMailingHtmlField extends HtmlField {
get wysiwygOptions() {
return {
...super.wysiwygOptions,
onIframeUpdated: this.env.onIframeUpdated,
onIframeUpdated: () => this.onIframeUpdated(),
snippets: 'mass_mailing.email_designer_snippets',
resizable: false,
defaultDataForLinkTools: { isNewWindow: true },