From 9569fbef2abb17f78aa43b8d6994d96e0f8cfd6d Mon Sep 17 00:00:00 2001 From: Antoine Guenet Date: Tue, 27 Apr 2021 08:18:16 +0000 Subject: [PATCH] [FIX] web_editor: preserve note-editable class on editable in iframe The "note-editable" class was lost on the editable element when loading it into an iframe. As a result, some selectors failed, making it so that some options wouldn't activate when they should. closes odoo/odoo#69908 X-original-commit: d71b7d87daa5b33f16eb9c6ade29580fb2076313 Signed-off-by: David Monjoie (dmo) --- 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 4b6ff09bf4b..84c849428e0 100644 --- a/addons/web_editor/static/src/js/wysiwyg/wysiwyg_iframe.js +++ b/addons/web_editor/static/src/js/wysiwyg/wysiwyg_iframe.js @@ -121,7 +121,7 @@ Wysiwyg.include({ const $iframeWrapper = $('
'); const $codeview = $('