diff --git a/source/Ox.UI/js/Form/EditableContent.js b/source/Ox.UI/js/Form/EditableContent.js index ac4b8aa0..cecd891c 100644 --- a/source/Ox.UI/js/Form/EditableContent.js +++ b/source/Ox.UI/js/Form/EditableContent.js @@ -213,10 +213,10 @@ Ox.EditableContent = function(options, self) { function updateSelection() { var range = document.createRange(), selection = window.getSelection(); - that.$element[0].focus(); + that[0].focus(); if (self.options.collapseToEnd) { selection.removeAllRanges(); - range.selectNodeContents(that.$element[0]); + range.selectNodeContents(that[0]); selection.addRange(range); } setTimeout(function() {