diff options
Diffstat (limited to 'addons/web_editor/static/src/js/backend/fields.js')
| -rw-r--r-- | addons/web_editor/static/src/js/backend/fields.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/addons/web_editor/static/src/js/backend/fields.js b/addons/web_editor/static/src/js/backend/fields.js index d3d601bac73..bbb43fc2f82 100644 --- a/addons/web_editor/static/src/js/backend/fields.js +++ b/addons/web_editor/static/src/js/backend/fields.js @@ -63,6 +63,12 @@ var FieldTextHtmlSimple = basic_fields.DebouncedField.extend(TranslatableFieldMi return this.value && this.value !== "<p><br/></p>" && this.value.match(/\S/); }, /** + * @override + */ + getFocusableElement: function () { + return this.$content || this._super.apply(this, arguments); + }, + /** * Do not re-render this field if it was the origin of the onchange call. * * @override |
