getSelectionRange

returns start and end positions of cursor during selection

object getSelectionRange(HTMLElement node);
nodeHTMLElementa DOM element where selection occurs
objectan object with the start and end cursor positions

Example

var selection_range = webix.html.getSelectionRange("myDiv");

See also
Back to top