diff --git a/addons/website/static/src/js/editor/snippets.options.js b/addons/website/static/src/js/editor/snippets.options.js index 1ba57400989..7e04db470c1 100644 --- a/addons/website/static/src/js/editor/snippets.options.js +++ b/addons/website/static/src/js/editor/snippets.options.js @@ -546,7 +546,7 @@ var FacebookPageDialog = weWidgets.Dialog.extend({ } else if (!self.fbData.small_header) { self.fbData.height = self.fbData.show_facepile ? 225 : 150; } - options.registry.facebookPage.prototype.markFbElement(self, self.$previewPage, self.fbData); + options.registry.facebookPage.prototype.markFbElement(self.getParent(), self.$previewPage, self.fbData); }, 404: function () { self._toggleWarning(false); diff --git a/addons/website/static/src/xml/website.facebook_page.xml b/addons/website/static/src/xml/website.facebook_page.xml index 7f16b568aec..d036e68b261 100644 --- a/addons/website/static/src/xml/website.facebook_page.xml +++ b/addons/website/static/src/xml/website.facebook_page.xml @@ -3,26 +3,31 @@