selection-ranges
Advanced tools
Comparing version 1.2.1 to 1.2.2
@@ -99,5 +99,7 @@ 'use strict'; | ||
var next = i.node; | ||
var last; | ||
var isClosing = false; | ||
var selectionStart = 0; | ||
var selectionStart; | ||
var count = 0; | ||
@@ -146,3 +148,3 @@ | ||
isBr(next) || ( | ||
next.previousSibling && ( | ||
last && (last.nextSibling == next) && ( | ||
isDiv(next) || | ||
@@ -187,2 +189,3 @@ isParagraph(next) | ||
last = next; | ||
next = i.next(); | ||
@@ -194,3 +197,3 @@ isClosing = i.closingTag; | ||
return { | ||
start: selectionStart, | ||
start: typeof selectionStart === 'undefined' ? count : selectionStart, | ||
end: count | ||
@@ -197,0 +200,0 @@ }; |
{ | ||
"name": "selection-ranges", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"description": "Selection range manipulation for contenteditable elements", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8938
254