getSelectionRange

returns start and end positions of cursor during selection

object getSelectionRange(HTMLElement node);

Parameters

nodeHTMLElementa DOM element where selection occurs

Returns

objectan object with the start and end cursor positions

Example

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

See also
Back to top