[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) <dmo@odoo.com> Signed-off-by: Rodolpho Cammarosano de Lima (rcdl) <rcdl@odoo.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user