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
Join Our Forum
We've retired comments here. Visit our forum for faster technical support, connect with other developers, and share your feedback there.