From c57b3ef541c2e5b1f4cae30bfd5db2c5af8c7314 Mon Sep 17 00:00:00 2001 From: Antoine Guenet Date: Mon, 15 Nov 2021 11:36:02 +0000 Subject: [PATCH] [FIX] web_editor: prevent
  • in When converting a list-group to a table, we sometimes ended up with
  • in element, which is non-sense and is hereby corrected. X-original-commit: 41eda109d2fbc0eb6616fb03102a205b945ab9b2 Part-of: odoo/odoo#81540 --- addons/web_editor/static/src/js/backend/convert_inline.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/web_editor/static/src/js/backend/convert_inline.js b/addons/web_editor/static/src/js/backend/convert_inline.js index 3a3a38456eb..0ffc31ad2fb 100644 --- a/addons/web_editor/static/src/js/backend/convert_inline.js +++ b/addons/web_editor/static/src/js/backend/convert_inline.js @@ -606,6 +606,8 @@ function listGroupToTable($editable) { $row.append($col); $table.append($row); $(child).remove(); + } else if (child.nodeName === 'LI') { + $table.append(...child.childNodes); } else { $table.append(child); }