[FIX] web_editor: update value at inline html save
In the base summernote library, each event modifying the editable area DOM trigger an 'onChange' event which update the textarea associated with the editor. Some widget (ImageDialog) have been entirely rewritten for Odoo without copying this behaviour. Hence for those components, if they were the last to be used and only in the instance of inline backend editor (FieldTextHtmlSimple widget), before saving updating the widget value by the current editor value is required. closes #9784 opw-654240
This commit is contained in:
@@ -122,8 +122,8 @@ var FieldTextHtmlSimple = widget.extend({
|
||||
if (this.options['style-inline']) {
|
||||
transcoder.class_to_style(this.$content);
|
||||
transcoder.font_to_img(this.$content);
|
||||
this.internal_set_value(this.$content.html());
|
||||
}
|
||||
this.internal_set_value(this.$content.html());
|
||||
},
|
||||
destroy_content: function () {
|
||||
$(".oe-view-manager-content").off("scroll");
|
||||
|
||||
Reference in New Issue
Block a user