summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src
diff options
context:
space:
mode:
authorNicolas Lempereur <nle@odoo.com>2015-11-27 11:49:17 +0100
committerNicolas Lempereur <nle@odoo.com>2015-11-27 12:40:55 +0100
commit7ddfd6285c3e815cfe54231bac9f35e01977c034 (patch)
treeb5e6e170264458e201cc59ab091b3f30fa60fd67 /addons/web_editor/static/src
parent2c84cd4181f8601ec21ffd9b7edb4013c141beb7 (diff)
[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
Diffstat (limited to 'addons/web_editor/static/src')
-rw-r--r--addons/web_editor/static/src/js/backend.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web_editor/static/src/js/backend.js b/addons/web_editor/static/src/js/backend.js
index e7c6d93853d..2c7c86466c1 100644
--- a/addons/web_editor/static/src/js/backend.js
+++ b/addons/web_editor/static/src/js/backend.js
@@ -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");