[FIX] web_editor: disable dropImageAsAttachment for mail and mailing
This commit deactivates the conversion of pasted or dropped images into attachments through a controller within the web_editor module. This alteration applies to mail and mass_mailing modules, as they have their own mechanism to handle this process. task-3457541 opw-3448851 X-original-commit: 291ca7496515701737f6940fa27c917ded205aa6 Part-of: odoo/odoo#131975
This commit is contained in:
@@ -70,6 +70,7 @@ export class MassMailingHtmlField extends HtmlField {
|
||||
this.commitChanges();
|
||||
this.wysiwyg.odooEditor.toolbarHide();
|
||||
},
|
||||
dropImageAsAttachment: false,
|
||||
...this.props.wysiwygOptions,
|
||||
};
|
||||
}
|
||||
|
||||
@@ -2264,6 +2264,9 @@ export class Wysiwyg extends Component {
|
||||
finalOptions.autohideToolbar = typeof finalOptions.autohideToolbar === 'boolean'
|
||||
? finalOptions.autohideToolbar
|
||||
: !finalOptions.snippets;
|
||||
if (finalOptions.inlineStyle) {
|
||||
finalOptions.dropImageAsAttachment = false;
|
||||
}
|
||||
|
||||
return finalOptions;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user