From 1748d38e8a2e514a193b6bdc822c1eafbbe20b10 Mon Sep 17 00:00:00 2001 From: Nicolas Bayet Date: Thu, 9 Feb 2023 09:54:25 +0000 Subject: [PATCH] [FIX] web_editor: fix iframe tree structure When the debug assets option is not activated, the assets are rendered with a space being trimmed from a string notation using backtick. This fix, uses the single quote notation to avoid this issue in `wysiwyg_iframe`. Without that fix, the structure of the dom is wrong and causes css rules to not be applied. task-3100202 X-original-commit: c54fcf21aecccac20b2c1d781132ed67df6c20a7 Part-of: odoo/odoo#112908 --- addons/web_editor/static/src/js/wysiwyg/wysiwyg_iframe.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web_editor/static/src/js/wysiwyg/wysiwyg_iframe.js b/addons/web_editor/static/src/js/wysiwyg/wysiwyg_iframe.js index f913b0340ca..3707d987b7e 100644 --- a/addons/web_editor/static/src/js/wysiwyg/wysiwyg_iframe.js +++ b/addons/web_editor/static/src/js/wysiwyg/wysiwyg_iframe.js @@ -154,7 +154,7 @@ Wysiwyg.include({ self.$iframe[0].contentWindow.document .open("text/html", "replace") .write(`${iframeContent}`); }); self.options.document = self.$iframe[0].contentWindow.document;