insert-text-at-cursor (npm): Cross-browser lib for inserting text at selection in a textarea / input
Keywords: text|range|selection|textarea|form|input