diff --git a/addons/web_editor/static/src/js/backend/QWebPlugin.js b/addons/web_editor/static/src/js/backend/QWebPlugin.js index e10f1701fa7..ac1440542e2 100644 --- a/addons/web_editor/static/src/js/backend/QWebPlugin.js +++ b/addons/web_editor/static/src/js/backend/QWebPlugin.js @@ -44,7 +44,7 @@ export class QWebPlugin { this._fixInlines(subRoot); - const demoElements = subRoot.querySelectorAll('[t-esc], [t-raw], [t-out]'); + const demoElements = subRoot.querySelectorAll('[t-esc], [t-raw], [t-out], [t-field]'); for (const element of demoElements) { element.setAttribute('contenteditable', 'false'); } 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 78799ada199..8f95ae89971 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 @@ -1320,7 +1320,8 @@ export function isUnbreakable(node) { node.getAttribute('t-foreach') || node.getAttribute('t-value') || node.getAttribute('t-out') || - node.getAttribute('t-raw'))) || + node.getAttribute('t-raw')) || + node.getAttribute('t-field')) || node.classList.contains('oe_unbreakable') ); }