diff --git a/addons/web/static/src/js/view_form.js b/addons/web/static/src/js/view_form.js index f21c16a812b..b4d43f26b6d 100644 --- a/addons/web/static/src/js/view_form.js +++ b/addons/web/static/src/js/view_form.js @@ -2964,6 +2964,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') || '');