diff --git a/addons/web_editor/static/src/js/wysiwyg/wysiwyg.js b/addons/web_editor/static/src/js/wysiwyg/wysiwyg.js index 2e7bf565d2b..56e6a3bbbbc 100644 --- a/addons/web_editor/static/src/js/wysiwyg/wysiwyg.js +++ b/addons/web_editor/static/src/js/wysiwyg/wysiwyg.js @@ -2064,7 +2064,7 @@ export class Wysiwyg extends Component { closestElement(selection.anchorNode, containerSelector)) || // In case a suitable container could not be found then the // selection is restricted inside the editable area. - this.$editable.find(containerSelector); + this.$editable.find(containerSelector)[0]; if (container) { const range = document.createRange(); range.selectNodeContents(container);