replaceRange
Replace a given range with another range, and then normalize the selection to merge and sort ranges if necessary.
Replace a given range with another range, and then normalize the selection to merge and sort ranges if necessary.