diff --git a/addons/web_editor/static/src/js/editor/odoo-editor/src/utils/utils.js b/addons/web_editor/static/src/js/editor/odoo-editor/src/utils/utils.js index 1e836c8a770..0c11e8fd9b1 100644 --- a/addons/web_editor/static/src/js/editor/odoo-editor/src/utils/utils.js +++ b/addons/web_editor/static/src/js/editor/odoo-editor/src/utils/utils.js @@ -2578,6 +2578,6 @@ export function isMacOS() { */ export function cleanZWS(node) { [node, ...descendants(node)] - .filter(node => node.nodeType === Node.TEXT_NODE) + .filter(node => node.nodeType === Node.TEXT_NODE && node.nodeValue.includes('\u200B')) .forEach(node => node.nodeValue = node.nodeValue.replace(/\u200B/g, '')); }