that.[0] -> that[0]
This commit is contained in:
parent
763f256e12
commit
f8336fc2c4
1 changed files with 2 additions and 2 deletions
|
@ -213,10 +213,10 @@ Ox.EditableContent = function(options, self) {
|
||||||
function updateSelection() {
|
function updateSelection() {
|
||||||
var range = document.createRange(),
|
var range = document.createRange(),
|
||||||
selection = window.getSelection();
|
selection = window.getSelection();
|
||||||
that.$element[0].focus();
|
that[0].focus();
|
||||||
if (self.options.collapseToEnd) {
|
if (self.options.collapseToEnd) {
|
||||||
selection.removeAllRanges();
|
selection.removeAllRanges();
|
||||||
range.selectNodeContents(that.$element[0]);
|
range.selectNodeContents(that[0]);
|
||||||
selection.addRange(range);
|
selection.addRange(range);
|
||||||
}
|
}
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
|
|
Loading…
Reference in a new issue