[FIX] website: WysiwygAdapter: fix props definition

The `beforeEditorActive` props is a function, not a boolean. So
before this commit, there was a crash in debug mode when the
WysiwygAdapter was instantiated.

Part-of: odoo/odoo#139154
This commit is contained in:
Aaron Bohy
2023-10-24 12:38:29 +00:00
parent 99d93872a3
commit b545e68ccb
@@ -59,7 +59,7 @@ export class WysiwygAdapterComponent extends Wysiwyg {
wysiwygReady: { type: Function },
editableElements: { type: true, optional: true },
savableSelector: { type: String, optional: true },
beforeEditorActive: { type: Boolean, optional: true },
beforeEditorActive: { type: Function, optional: true },
removeWelcomeMessage: { type: Function },
}
/**