From c724da2160cc34069fb61d60114e3ccbd8fecbf9 Mon Sep 17 00:00:00 2001 From: Antoine Guenet Date: Mon, 19 Oct 2020 15:45:27 +0000 Subject: [PATCH] [FIX] web_editor: do not insert chars around step icon on click closes odoo/odoo#60301 Signed-off-by: David Monjoie (dmo) --- addons/web_editor/static/src/js/wysiwyg/wysiwyg.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/addons/web_editor/static/src/js/wysiwyg/wysiwyg.js b/addons/web_editor/static/src/js/wysiwyg/wysiwyg.js index fea4c277015..08d341257f6 100644 --- a/addons/web_editor/static/src/js/wysiwyg/wysiwyg.js +++ b/addons/web_editor/static/src/js/wysiwyg/wysiwyg.js @@ -219,6 +219,20 @@ var Wysiwyg = Widget.extend({ }, }, }, + + // s_process_step + { + selector: [node => { + const attributes = node.modifiers.find(this.JWEditorLib.Attributes); + return attributes && attributes.classList.has('s_process_step_icon'); + }], + properties: { + editable: { + value: false, + cascading: true, + }, + }, + }, ], }; }