diff --git a/addons/web_editor/static/src/js/backend.js b/addons/web_editor/static/src/js/backend.js index f5af01ec89c..e7c6d93853d 100644 --- a/addons/web_editor/static/src/js/backend.js +++ b/addons/web_editor/static/src/js/backend.js @@ -106,7 +106,10 @@ var FieldTextHtmlSimple = widget.extend({ var value = this.get('value'); this.$textarea.val(value || ''); this.$content.html(this.text_to_html(value)); - this.$content.focusInEnd(); + // on ie an error may occur when creating range on not displayed element + try { + this.$content.focusInEnd(); + } catch (e) {} var history = this.$content.data('NoteHistory'); if (history && history.recordUndo()) { this.$('.note-toolbar').find('button[data-event="undo"]').attr('disabled', false);