[FIX] web_editor: do not insert chars around step icon on click

closes odoo/odoo#60301

Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
This commit is contained in:
Antoine Guenet
2020-10-19 15:45:27 +00:00
parent 3fac2f8450
commit c724da2160
@@ -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,
},
},
},
],
};
}