returns start and end positions of cursor during selection
var selection_range = webix.html.getSelectionRange("myDiv");