From 6ba30d46a4a484be539b30f13ef7835b86bc2b85 Mon Sep 17 00:00:00 2001 From: aath-odoo Date: Wed, 21 Sep 2022 10:46:46 +0000 Subject: [PATCH] [FIX] web_editor: text should not be wrapped in edit mode Before this commit: The behaviour of the text were not identical in edit mode and after save, the word was wrapped in edit mode. After this commit: To make the behaviour identical by unsetting the default overflow property in edit mode. Task-2878307 closes odoo/odoo#103975 X-original-commit: 6177fac863a29c86ed4e5ede8d48aa31da3a8508 Signed-off-by: David Monjoie (dmo) --- addons/web_editor/static/src/scss/web_editor.common.scss | 3 +++ 1 file changed, 3 insertions(+) diff --git a/addons/web_editor/static/src/scss/web_editor.common.scss b/addons/web_editor/static/src/scss/web_editor.common.scss index 942f5ad4f7f..64d1ef65698 100644 --- a/addons/web_editor/static/src/scss/web_editor.common.scss +++ b/addons/web_editor/static/src/scss/web_editor.common.scss @@ -82,6 +82,9 @@ html, body { *[contenteditable=true] { outline: none; } +[contenteditable] { + overflow-wrap: unset !important; +} .css_non_editable_mode_hidden { display: none !important;