rangyinputs icon indicating copy to clipboard operation
rangyinputs copied to clipboard

Make getSelection()['start'] the default value for [Number Start]

Open tomsommer opened this issue 9 years ago • 0 comments

It would be nice if the Start argument in insertText() and related functions was optional and defaulted to .getSelection()['start']

So one would not have to do

$('#foo').insertText('Bar', $('#foo').getSelection()['start']);

but simply

$('#foo').insertText('Bar');

to insert at current caret position.

tomsommer avatar Jul 26 '16 11:07 tomsommer