[FIX] web_editor: allow html if data-oe-type=html

The `isHtmlContentSupported` function incorrectly returned `false` for elements
inside `data-oe-type="html"` nodes even though those in fact do support html.

task-3184150

X-original-commit: 7d9a040fdefa527ace3150e39a03b833024b7973
Part-of: odoo/odoo#113908
This commit is contained in:
Stanislas Gueniffey
2023-03-01 22:35:53 +01:00
parent b20f120cab
commit 866ee94791
@@ -1496,7 +1496,7 @@ export function getOuid(node, optimize = false) {
* @returns {boolean}
*/
export function isHtmlContentSupported(node) {
return !closestElement(node, '[data-oe-model]:not([data-oe-field="arch"]),[data-oe-translation-id]', true);
return !closestElement(node, '[data-oe-model]:not([data-oe-field="arch"]):not([data-oe-type="html"]),[data-oe-translation-id]', true);
}
/**
* Returns whether the given node is a element that could be considered to be