[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:
@@ -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 },
|
||||
|
||||
Reference in New Issue
Block a user