Skip to content

Commit f3ea3a3

Browse files
authored
Merge pull request wix-incubator#21 from philpettican/bugfix/text-selection
text-selection: Fixed text selection on Android.
2 parents fbce69c + 75b5b70 commit f3ea3a3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/assets/editor.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1035,7 +1035,10 @@
10351035
//sel.collapseToStart();
10361036
var range = sel.getRangeAt(0);
10371037
var span = document.createElement('span');// something happening here preventing selection of elements
1038-
range.collapse(false);
1038+
if (zss_editor.isUsingiOS) {
1039+
range.collapse(false);
1040+
}
1041+
10391042
range.insertNode(span);
10401043
var topPosition = span.offsetTop;
10411044
span.parentNode.removeChild(span);

0 commit comments

Comments
 (0)