From 3e938043dccc71c94841cb597eba498f1ceebdf8 Mon Sep 17 00:00:00 2001 From: Rodolpho Lima Date: Mon, 28 Aug 2023 16:35:16 +0200 Subject: [PATCH] [FIX] web_editor: style-inline option in HtmlField Before this commit, the "style-inline" option was misspelled as "styleInline", resulting in setting the Wysiwyg "inlineStyle" option as undefined. This broke functionality that depended on such option, such as disabling the convertion of pasted/dropped base64-encoded images to attachment for mail compose. OPW-3448851 closes odoo/odoo#133406 X-original-commit: 4ec687366eca1e05716fe93dad77eef5a9981153 Signed-off-by: David Monjoie (dmo) Signed-off-by: Rodolpho Cammarosano de Lima (rcdl) --- addons/web_editor/static/src/js/backend/html_field.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web_editor/static/src/js/backend/html_field.js b/addons/web_editor/static/src/js/backend/html_field.js index 46b41988bd5..1e2c68a9727 100644 --- a/addons/web_editor/static/src/js/backend/html_field.js +++ b/addons/web_editor/static/src/js/backend/html_field.js @@ -681,7 +681,7 @@ export const htmlField = { wysiwygOptions.collaborativeTrigger = options.collaborative_trigger || 'focus'; } if ('style-inline' in options) { - wysiwygOptions.inlineStyle = Boolean(options.styleInline); + wysiwygOptions.inlineStyle = Boolean(options['style-inline']); } if ('allowCommandImage' in options) { // Set the option only if it is explicitly set in the view so a default