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 15673108ba7..db359e4b186 100644 --- a/addons/web_editor/static/src/js/backend/convert_inline.js +++ b/addons/web_editor/static/src/js/backend/convert_inline.js @@ -41,31 +41,35 @@ const TABLE_STYLES = { * @param {JQuery} $editable */ function addTables($editable) { - for (const snippet of $editable.find('.o_mail_snippet_general, .o_layout')) { + const editable = $editable.get(0); + for (const snippet of editable.querySelectorAll('.o_mail_snippet_general, .o_layout')) { // Convert all snippets and the mailing itself into table > tr > td - const $table = _createTable(snippet.attributes); - const $row = $('
Test
` + + `Test
` + `