diff --git a/addons/web_editor/static/src/js/editor/snippets.editor.js b/addons/web_editor/static/src/js/editor/snippets.editor.js
index 7b09fe3184e..90143886c7e 100644
--- a/addons/web_editor/static/src/js/editor/snippets.editor.js
+++ b/addons/web_editor/static/src/js/editor/snippets.editor.js
@@ -3460,15 +3460,15 @@ var SnippetsMenu = Widget.extend({
var $target = $toInsert;
- if ($target[0].classList.contains("o_snippet_drop_in_only")) {
- // If it's a "drop in only" snippet, after dropping
- // it, we modify it so that it's no longer a
- // draggable snippet but rather simple HTML code, as
- // if the element had been created with the editor.
- $target[0].classList.remove("o_snippet_drop_in_only");
- delete $target[0].dataset.snippet;
- delete $target[0].dataset.name;
- }
+ if ($target[0].classList.contains("o_snippet_drop_in_only")) {
+ // If it's a "drop in only" snippet, after dropping
+ // it, we modify it so that it's no longer a
+ // draggable snippet but rather simple HTML code, as
+ // if the element had been created with the editor.
+ $target[0].classList.remove("o_snippet_drop_in_only");
+ delete $target[0].dataset.snippet;
+ delete $target[0].dataset.name;
+ }
this.options.wysiwyg.odooEditor.observerUnactive('dragAndDropCreateSnippet');
await this._scrollToSnippet($target, this.$scrollable);
diff --git a/addons/website/static/src/snippets/s_countdown/000.js b/addons/website/static/src/snippets/s_countdown/000.js
index 056909a2d16..1b5ea9475cb 100644
--- a/addons/website/static/src/snippets/s_countdown/000.js
+++ b/addons/website/static/src/snippets/s_countdown/000.js
@@ -14,6 +14,11 @@ const CountdownWidget = publicWidget.Widget.extend({
* @override
*/
start: function () {
+ // Remove SVG previews (used to simulated canvas)
+ this.$el[0].querySelectorAll('svg').forEach(el => {
+ el.parentNode.remove();
+ });
+
this.$wrapper = this.$('.s_countdown_canvas_wrapper');
this.$wrapper.addClass('d-flex justify-content-center');
this.hereBeforeTimerEnds = false;
diff --git a/addons/website/static/src/snippets/s_facebook_page/options.js b/addons/website/static/src/snippets/s_facebook_page/options.js
index 6c0ade9f8df..2efc3ea7710 100644
--- a/addons/website/static/src/snippets/s_facebook_page/options.js
+++ b/addons/website/static/src/snippets/s_facebook_page/options.js
@@ -41,6 +41,12 @@ options.registry.facebookPage = options.Class.extend({
return Promise.all(defs).then(() => this._markFbElement()).then(() => this._refreshPublicWidgets());
},
+ /**
+ * @override
+ */
+ onBuilt() {
+ this.$target[0].querySelector('.o_facebook_page_preview')?.remove();
+ },
//--------------------------------------------------------------------------
// Options
diff --git a/addons/website/views/new_page_template_templates.xml b/addons/website/views/new_page_template_templates.xml
index e7979a7ca5e..3042abe650a 100644
--- a/addons/website/views/new_page_template_templates.xml
+++ b/addons/website/views/new_page_template_templates.xml
@@ -1039,7 +1039,7 @@ overridden by modules), because:
-
+