[FIX] web_editor: restore mass_mailing's Mail Debug tab's embedded style

An error during the conversion of the html field to Owl caused the
embedded style of the Mail Debug tab to be lost because they were inside
a `<link>` element rather than in a `<style>` element.

closes odoo/odoo#115863

X-original-commit: 218909a339b2f3937e6d6f72fd0c6ff62aa305ce
Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
This commit is contained in:
Antoine Guenet
2023-03-20 16:51:44 +01:00
parent dbc3b0b5d5
commit 6fddef5572
@@ -463,7 +463,7 @@ export class HtmlField extends Component {
cwindow.document.head.append(link);
}
for (const cssContent of asset.cssContents) {
const style = cwindow.document.createElement('link');
const style = cwindow.document.createElement('style');
style.setAttribute('type', 'text/css');
const textNode = cwindow.document.createTextNode(cssContent);
style.append(textNode);