[MERGE] forward port of branch 7.0 up to 411a07a

This commit is contained in:
Christophe Simonis 2015-08-27 18:01:14 +02:00
commit 1783a7d005
1 changed files with 4 additions and 0 deletions

View File

@ -2778,6 +2778,10 @@ instance.web.form.FieldTextHtml = instance.web.form.AbstractField.extend(instanc
}
}
},
focus: function() {
var input = !this.get("effective_readonly") && this.$cleditor
return input ? input.focus() : false;
},
render_value: function() {
if (! this.get("effective_readonly")) {
this.$textarea.val(this.get('value') || '');